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.