CVE-2026-138056: Hardcoded JWT Secret in SonicJS Enables Token Forgery
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
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?
How urgent is this?
What should we do first?
Continue Reading
Broadcom patches critical VMware vCenter auth bypass flaws Broadcom disclosed VMware Security Advisory VMSA-2026-0009 on November 19, 2026, covering vulnerabilities in VMware vCenter, Tools, and SDDC Manager. CVE-2026-123890, a CVSS 9.8 authentication bypass in the VMware Directory Service, is listed in CISA's KEV catalog, which the verified record gives as 2026-11-20.…
Critical WP Rocket Path Traversal RCE (CVE-2026-125812) Under Active Exploitation CVE-2026-125812 is a path traversal flaw in the WP Rocket WordPress caching plugin, fixed in version 3.24.2, that allows unauthenticated remote code execution. Patchstack scores it CVSS 3.1 9.8 and says every release before 3.24.2 is affected; WP Media states the plugin is installed on more than 5.6 million sites. The…