CVE-2026-138056
Deferred Deferred - Pending Action

Hard-Coded Cryptographic Key in SonicJS

Vulnerability report for CVE-2026-138056, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-11-28

Last updated on: 2026-11-28

Assigner: VulDB

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-11-28
Last Modified
2026-11-28
Generated
2026-11-29
AI Q&A
2026-11-28
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 2 associated CPEs
Vendor Product Version / Range
SonicJs-Org SonicJS 3.0.0
SonicJs-Org SonicJS 3.0.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-320 Key Management Errors
CWE-321 The product uses a hard-coded, unchangeable cryptographic key.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

CVE-2026-138056 is a vulnerability in SonicJS up to version 3.0.1 where a hard-coded cryptographic key is used in the AuthManager.verifyToken function. If the JWT_SECRET environment variable is not set, the system falls back to a default hard-coded secret, allowing attackers to forge JWT tokens and bypass authentication.

Detection Guidance

Check for the presence of the hardcoded JWT secret 'your-super-secret-jwt-key-change-in-production' in source files like packages/core/src/middleware/auth.ts. Search for environment variable usage of JWT_SECRET and verify if it is properly configured. Inspect logs for bootstrap warnings or errors indicating default secret usage.

Impact Analysis

This vulnerability allows remote attackers to forge authentication tokens, bypass security controls, and gain unauthorized access to the system. It can lead to privilege escalation, data breaches, and unauthorized actions performed on behalf of legitimate users.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection requirements and HIPAA's security rules for protected health information. Non-compliance risks include legal penalties, fines, and reputational damage.

Mitigation Strategies

Set a strong, unique JWT_SECRET environment variable in production. Remove or replace the hardcoded fallback secret in all relevant files. Apply the vendor's patch by ensuring the bootstrap check enforces non-default secret usage. Regenerate all JWT tokens after changes to invalidate any previously signed tokens.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-138056. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...