Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessFind Tensei app with JWT_SECRET unset
-
DeliveryForge JWT signed with 'auth-secret-key'
-
ExploitSet arbitrary admin user id in claims
-
ExecutionSubmit token to @tensei/auth API
-
ImpactImpersonate administrator, full account takeover
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism
|
| Exploitation Conditions | Exploitable only when the JWT_SECRET environment variable is unset, which causes @tensei/auth to fall back to the hard-coded signing key 'auth-secret-key'; deployments that set JWT_SECRET to a strong value are not affected because tokens would then be signed and verified with the operator's secret. When the condition holds, no authentication, user interaction, or special network position is required - any remote party who knows the hard-coded key can forge a token with an arbitrary user id accepted by populateContextFromToken. The primary limiting factor is therefore configuration: the hard-coded fallback must be in effect (JWT_SECRET missing) and the target must be running @tensei/auth at version 0.11.5 or earlier. |
| Impact | Multiple signals point the same direction but with an important caveat. The vuln.today decision label is act_now and the finding comes from VulnCheck, a credible source, with CWE-1394 (use of a hard-coded/default cryptographic key). The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H, score 9.3) describes a remote, no-privilege, no-interaction authentication bypass yielding full impersonation of any user including administrators - mechanically trivial to exploit once the condition is met. However, no CISA KEV listing is present, no EPSS score was supplied, and no confirmed working exploit code is referenced (only a GitHub issue, the vulnerable source lines, and the VulnCheck advisory), so there is no evidence of active or widespread exploitation yet. The key gating factor, visible in the description rather than the CVSS vector, is that the hard-coded fallback key 'auth-secret-key' is only used when the JWT_SECRET environment variable is unset; the CVSS PR:N/AC:L rating treats this default-unset state as the exploitable baseline and does not reflect that a deployment with JWT_SECRET properly configured is not affected. Net assessment: a genuinely severe, easy-to-exploit bug where it applies, but real-world blast radius is bounded by both the niche footprint of the product and whether operators left JWT_SECRET unset - verify configuration before treating any given instance as exploitable. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies a Tensei (≤0.11.5) application whose JWT_SECRET environment variable was never set, so @tensei/auth signs and verifies tokens with the hard-coded key 'auth-secret-key'. The attacker forges a JWT containing an arbitrary user id (e.g. an administrator's) signed with that known key and submits it; populateContextFromToken accepts it, granting full administrative impersonation. No confirmed working exploit code is published, but the hard-coded key and verification path are documented in the referenced source, making a forged token trivial to produce. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Authentication bypass in @tensei/auth, the authentication package of the Tensei framework through version 0.11.5, allows unauthenticated remote attackers to forge JSON Web Tokens and impersonate any user, including administrators. The exposure is configuration-dependent: when the JWT_SECRET environment variable is unset, the package falls back to the hard-coded signing key 'auth-secret-key', so anyone who knows that constant can sign a token carrying an arbitrary user id that populateContextFromToken accepts without further verification. Deployments that set a strong JWT_SECRET are not affected; the vulnerability is reported by VulnCheck with an act_now priority decision, and no CISA KEV entry or confirmed public exploit code was identified at time of analysis, though the fallback secret is plainly visible in the public source tree.
RemediationAI
No vendor-released patch version is identified in the available data, and the affected range is stated only as 'through 0.11.5', so there is no confirmed fixed release to upgrade to; track https://github.com/tenseijs/tensei/issues/398 and the VulnCheck advisory for an upstream fix. The effective and evidence-supported mitigation is to set the JWT_SECRET environment variable to a strong, randomly generated value before starting any Tensei application using @tensei/auth, which removes the hard-coded fallback and restores operator-controlled signing and verification; the trade-off is that all previously issued tokens, including those signed with 'auth-secret-key', become invalid, so users and administrators must re-authenticate and any long-lived tokens must be reissued. Because tokens forged under the fallback key are indistinguishable in format from legitimate ones, treat any deployment that ran without JWT_SECRET as potentially compromised, rotate the secret and any other credentials reachable through impersonated administrative accounts, and review authentication logs for token use by unexpected user ids. Where the configuration cannot be changed immediately, restrict network access to the application's authenticated endpoints so that only trusted clients can reach the token verification path, at the cost of losing public or partner-facing access to those routes.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Tensei is a TypeScript/Node.js application framework, and @tensei/auth implements its JWT-based session layer. Token verification is handled by populateContextFromToken in packages/auth/src/index.ts (the reported location is lines 94-98 in commit 630f390), which resolves the signing key from the JWT_SECRET environment variable and, when that variable is absent, substitutes the literal string 'auth-secret-key'. Because HMAC-signed JWTs are verified with the same symmetric secret used to issue them, knowledge of that constant is sufficient to mint a valid token for any user id, and the flaw maps to CWE-1394 (Use of a Default Credential). The issue was filed upstream as tenseijs/tensei issue 398. The trigger condition is explicitly described in the source: the fallback is only in effect when JWT_SECRET is unset, so the vulnerability manifests as a deployment/configuration failure rather than a logic flaw in token parsing. Note that the published CVSS 4.0 score of 9.3 and the independently assessed CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H) agree on unauthenticated network reachability and full confidentiality, integrity, and availability impact, with the practical limiting factor being whether the default secret is actually in use.
Know when Tensei Auth gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Remote authentication bypass via a publicly known hard-coded key needs no privileges or interaction and is reliable when JWT_SECRET is unset (PR:N/AC:L); full admin impersonation yields high C/I/A.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Tensei through 0.11.5 contains an authentication bypass vulnerability in @tensei/auth that falls back to the hard-coded JWT signing key 'auth-secret-key' when JWT_SECRET is unset. Unauthenticated attackers can sign tokens with arbitrary user ids accepted by populateContextFromToken to impersonate any user, including administrators.
Articles & Coverage 2
Executive ViewAI
CVE-2026-129552 is a critical authentication bypass in the Tensei framework's @tensei/auth package (through version 0.11.5) that allows unauthenticated attackers to forge tokens and impersonate any user, including administrators, if the JWT_SECRET environment variable is not set. This puts organizations using Tensei with default or missing JWT_SECRET at risk of full application compromise, unauthorized access to sensitive data, and administrative takeover. Leadership should prioritize immediate remediation steps.
No vendor-released patch identified at time of analysis; set a strong JWT_SECRET environment variable, monitor for anomalous authentication events, and restrict network access to authentication endpoints.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-126282
GHSA-2q55-g3jv-fgmf
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB