SonicJS auth bypass via hard-coded key in AuthManager.verifyToken
Affects SonicJS installs that leave the JWT_SECRET environment variable unset, including the shipped my-sonicjs-app template. No fixed version is named, and the fix is marked partial.
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Default setups
Summary
SonicJS, from SonicJs-Org, uses a hard-coded cryptographic key in its token verification, so it can be reached remotely without logging in. An attacker could affect confidentiality, integrity, and availability to a limited degree.
Written by a model
Original description
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 JWT_SECRET is missing or still the default value.
Who should check
Teams running SonicJS apps, including create-sonicjs templates, that do not set an explicit JWT_SECRET, on Cloudflare Workers or Docker.
Not fixed by: The bootstrap check does not protect deployments that run without JWT_SECRET.
“Residual exposure : on any deployment that runs without an explicit JWT_SECRET (the template default)”
What to do
Check every install: default setups are affected.
Workaround: While no fix is named, setting a JWT_SECRET value is the step that avoids the hardcoded fallback, since the flaw applies only when that variable is not configured.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-138056 (SonicJs-Org SonicJS auth.ts AuthManager.verifyToken hard-coded key), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-138056 (entry last updated 2026-11-28):
Affected:
- SonicJs-Org SonicJS: versions 3.0.0, 3.0.1
Fix: partial. The advisory says the fix does not fully address the issue.
Conditions (all must be true for the bug to be hit):
- The JWT_SECRET environment variable is not configured, so the hardcoded fallback value is used as the signing key. (source: https://github.com/SonicJs-Org/sonicjs/issues/1043#issuecomment-6425433099)
- The shipped my-sonicjs-app template has no JWT_SECRET set in wrangler.toml. (source: https://github.com/SonicJs-Org/sonicjs/issues/1043#issuecomment-6425433099)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-138056 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-138056 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/SonicJs-Org/sonicjs/issues/1043#issuecomment-6425433099
- https://vuldb.com/vuln/444971
- https://vuldb.com/vuln/444971/cti
- https://vuldb.com/cve/CVE-2026-138056
- https://vuldb.com/submit/1069059
- https://github.com/SonicJs-Org/sonicjs/
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-138056
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-138056"}.Affected versions
- SonicJs-Org SonicJS3.0.0, 3.0.1
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure22/25Default setups, reachable over the network without a login
- Reach?/20Unknown. No tracked technology or package matched
- Severity6.9/10CVSS 6.9
- No patch5/5No patch listed yet
What would change the score
- Would score about 74 if added to CISA KEV
- Would score about 69 if CISA's SSVC rates exploitation active
Timeline
- CVE published
- First seen by cve.now
Evidence 9
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-138056 |
| Record | NVD · CVE-2026-138056 |
| Public exploit code 1Establishes: Public exploit code exists (Exploit-DB, Metasploit, Nuclei and GitHub). | |
| Exploit | GitHub · SonicJs-Org/sonicjs · Issue #1043 |
| Other links 6 | |
| Advisory | VulDB · Advisory #444971 |
| Advisory | VulDB · Threat intelligence #444971 |
| Advisory | VulDB · CVE-2026-138056 record |
| Advisory | VulDB · Submission #1069059 |
| Report | GitHub · SonicJs-Org/sonicjs · Issue #1043 · issuecomment-6425433099 |
| Repository | GitHub · SonicJs-Org/sonicjs · Repository |
Questions about CVE-2026-138056
Is CVE-2026-138056 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
When JWT_SECRET is not configured, both token verification and token generation silently fall back to a hardcoded signing key. Anyone who knows that default value can forge tokens for registered users.
Source: github.com
Which versions are affected by CVE-2026-138056?
SonicJS: versions 3.0.0, 3.0.1.
Source: cve.now feed data
Am I affected, and how do I check?
SonicJS installs without JWT_SECRET configured are affected, and the shipped my-sonicjs-app template does not set it in wrangler.toml. To check a setup, look for JWT_SECRET in its environment variables and wrangler.toml.
Source: github.com
How do I fix CVE-2026-138056?
The available facts name no fixed version and no patch identifier. The only fix text describes a security check added to packages/core/src/middleware/bootstrap.ts that runs on every cold start.
Source: github.com
What if there's no patch?
While no fix is named, setting a JWT_SECRET value is the step that avoids the hardcoded fallback, since the flaw applies only when that variable is not configured.
Source: github.com
Is the fix complete?
The fix is marked partial, but the facts do not list which parts remain unfixed. The available fix text covers only the startup security check.
Source: github.com
Related
- CVE-2026-119707SonicJS through 3.0.0 Missing Authorization in Content Write API
- CVE-2026-124843Hard-coded fallback cryptographic key enables token forgery
- CVE-2026-132257AutoGPT: Hardcoded Default Fernet Encryption Key Exposes All Stored OAuth Credentials
- CVE-2026-80498Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Use of Hard-coded Cryptographic Key vulnerability.
- CVE-2026-80451Dell Secure Connect Gateway - Virtual Edition, versions prior to 5.36.00.16, contains a Use of Hard-coded Cryptographic Key vulnerability.
- CVE-2026-80271Dell Secure Connect Gateway (SCG) Virtual Edition, versions prior to 5.36.00.16, contains a Use of Hard-coded Cryptographic Key…
No corrections so far. Something wrong on this page? Report an error.