CVE-2026-138056

SonicJs-Org SonicJS auth.ts AuthManager.verifyToken hard-coded key

Published Nov 28, 2026 CVSS 4.0 · 6.9 Medium EPSS n/a KEV · Not listed
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.

Analysis

AI-generated

Technical impact

SonicJS versions up to 3.0.1 expose a hard‑coded cryptographic key in the Token verification routine, violating CWE‑320 and CWE‑321, and enabling attackers to forge JSON Web Tokens. If an attacker can craft a token that appears valid, they can gain unauthorized access to protected resources, potentially escalating privileges or accessing sensitive data.

Affected Systems

The vulnerability is present in SonicJs‑Org SonicJS up to and including version 3.0.1, affecting the AuthManager.verifyToken function located in packages/core/src/middleware/auth.ts.

Risk and Exploitability

With a CVSS score of 6.9, the flaw presents a moderate risk. The EPSS score is not available, so the probability of exploitation in the wild is unknown, but the vulnerability has been publicly disclosed. It is not yet listed in the CISA KEV catalog. Attackers can target the application remotely by submitting a forged token, and the exploitation requires no local access or privileged credentials.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade SonicJS to a patched release that removes the hard‑coded key (any version newer than 3.0.1).
  • Configure a strong, random JWT_SECRET value in production and ensure the default value is not used.
  • If an upgrade is not yet possible, enable the bootstrap.ts security check in production so that attempts to use a missing or default secret are blocked and logged.

Generated by OpenCVE AI on November 28, 2026 at 17:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
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.
Title SonicJs-Org SonicJS auth.ts AuthManager.verifyToken hard-coded key
First Time appeared Sonicjs
Sonicjs sonicjs
Weaknesses CWE-320
CWE-321
CPEs cpe:2.3:a:sonicjs:sonicjs:*:*:*:*:*:*:*:*
Vendors & Products Sonicjs
Sonicjs sonicjs
References
Metrics cvssV2_0

{'score': 7.5, 'vector': 'AV:N/AC:L/Au:N/C:P/I:P/A:P/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 7.3, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 7.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 6.9, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 28, 2026, 4:00 PM
Reserved
Nov 27, 2026, 6:19 PM
Status
Deferred
Published
Nov 28, 2026, 4:16 PM
Modified
Nov 28, 2026, 4:16 PM