Skip to content
CVE-2026-138056: Hardcoded JWT Secret in SonicJS Enables Token Forgery

CVE-2026-138056: Hardcoded JWT Secret in SonicJS Enables Token Forgery

First seen 28 Nov 2026, 22:47 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •November 28, 2026 at 22:48 UTC
  • •CVE-2026-138056 affects SonicJS up to 3.0.1 and is rated CVSS 6.9 (MEDIUM).
  • •The default JWT secret is hardcoded in public source code and used as a fallback when JWT_SECRET is unset.
  • •A forged token could allow unauthenticated remote impersonation, per the GitHub report and Redpacketsecurity.
  • •Redpacketsecurity says public exploit information exists but does not establish active exploitation or KEV listing.
  • •Remediation is a vendor-fixed release; rotate the JWT secret and invalidate existing tokens.

Redpacketsecurity reports a vulnerability in SonicJS-Org SonicJS up to 3.0.1 in the AuthManager.verifyToken function of packages/core/src/middleware/auth.ts, classified as use of a hard-coded cryptographic key and rated CVSS 6.9 (MEDIUM).

A GitHub issue (SonicJs-Org/sonicjs issue 1043) states that the default JWT secret 'your-super-secret-jwt-key-change-in-production' is committed in several source files and that verifyToken() and generateToken() silently fall back to it when JWT_SECRET is not set.

The GitHub report states that an attacker could use the public secret to forge tokens with arbitrary identity and permission claims, bypassing authentication.

Redpacketsecurity says the attack can be launched remotely and that a public exploit has been disclosed, but it states the supplied data does not establish active exploitation or KEV inclusion.

The vendor reportedly added a bootstrap.ts check that logs a warning in development and throws an error in production when JWT_SECRET is missing or set to the default.

Redpacketsecurity recommends upgrading to a fixed release, rotating the JWT secret, invalidating existing tokens, and reviewing authentication logs for unusual activity.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-11-28
CVE-2026-138056 published
Published as a MEDIUM (CVSS 6.9) hard-coded cryptographic key issue in SonicJS up to 3.0.1.
Redpacketsecurity
2026-11-28
Hardcoded JWT secret issue reported on GitHub
Issue 1043 describes the default JWT secret as publicly obtainable and states there is no startup warning when the default is used.
github.com

More articles in this cluster (6)

Following this threat?

Track SonicJs-Org and CVE-2026-138056 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
Deployments of SonicJS up to 3.0.1 that rely on the default or unset JWT_SECRET are affected, per the reporting. Internet-facing instances should be prioritised.
How urgent is this?
Redpacketsecurity advises prompt action because public exploit information exists, but it states active exploitation and KEV inclusion are not established. CVSS is 6.9 (MEDIUM).
What should we do first?
Upgrade to a vendor-fixed release, set a strong JWT_SECRET, rotate it, and invalidate existing tokens. Review authentication logs for unexpected identities.