CVE-2026-138056: SonicJs-Org SonicJS auth.ts AuthManager.verifyToken hard-coded key
A vulnerability was determined in SonicJs-Org SonicJS up to 3.0.1. This impacts the function AuthManager.verifyToken of the file packages/core/src/middleware/auth.ts. Executing a manipulation can lead to use of hard-coded cryptographic key . It is possible to launch the attack remotely. The exploit has been publicly disclosed and may be utilized. A patch should be applied to remediate this issue. Vendor confirmed remediation by adding a bootstrap.ts security check that logs a warning in development and throws a hard error in production when JWTSECRET is missing or still the default value.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Add a bootstrap.ts security check that logs a warning in development and throws a hard error in production when JWT_SECRET is missing or still the default value.
SonicJS bootstrap.ts JWT_SECRET validation = Reject missing or default values in production
Event History
Frequently Asked Questions
Who can exploit this issue?
The attack can be launched remotely and requires no privileges or user interaction. Public exploit disclosure means attempts to exploit affected deployments may be practical.
What configuration condition makes a deployment affected?
Deployments are affected when JWT_SECRET is missing or remains set to its default value, allowing use of the hard-coded cryptographic key. The remediation adds checks specifically for those conditions.
What should teams do if they cannot patch immediately?
Set JWT_SECRET to a non-default value rather than leaving it missing or at its default. Apply the vendor patch as soon as possible.
How does the remediation help identify unsafe deployments?
The vendor's bootstrap.ts check logs a warning during development and throws a hard error in production when JWT_SECRET is missing or still set to the default value.