{"id":"CVE-2026-129552","kind":"vulnerability","aliases":["CVE-2026-129552"],"related":[],"title":"Tensei auth: hard-coded JWT key lets anyone forge admin tokens","description":"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.","summary":"@tensei/auth (all releases through 0.11.5) uses the hard-coded JWT signing key 'auth-secret-key' when JWT_SECRET is unset, which is the default. Anyone who can reach the app can sign a token for any user id and be accepted as that user, including an administrator. No fix is released; the report in the maintainers' repo is still open.","severity":"critical","cvss":9.8,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"@tensei/auth","fixed":[],"affected":"<= 0.11.5","ecosystem":"npm"}],"ecosystems":[],"tags":["@tensei/auth","auth-bypass","hard-coded-credential","headless-cms","jwt","node","npm","package","tensei"],"not_affected_if":["jwt-secret-set","newer-version","secretkey-configured"],"how_to_check":"1. Run: npm ls @tensei/auth (or grep @tensei/auth in package-lock.json / yarn.lock); versions <= 0.11.5 are affected.\n2. Confirm JWT_SECRET is set to a non-empty, non-guessable value in the running process environment (not just .env.example). If unset, or set to 'auth-secret-key', you are exposed.\n3. Also check whether tokensConfig.secretKey is overridden via auth().configureTokens({secretKey: ...}); if so the fallback is not used.\n4. Also check SESSION_SECRET (fallback '__sessions__secret__' reported in issue #398, not in the CVE).","fix":"No fixed version: the maintainers have not responded to issue #398 and 0.11.5 is the latest release seen. Workaround: set a long random JWT_SECRET (32+ bytes) in every environment, restart, and treat existing tokens as untrusted (the old key is public, so rotating invalidates forged ones).","status":"open","published_at":"2026-11-16T12:17:53+00:00","first_seen_at":"2026-11-16T12:40:57+00:00","triaged_at":"2026-11-16T12:42:33+00:00","updated_at":"2026-11-16T12:44:03+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T12:42:33Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"internet","title":"Tensei auth: hard-coded JWT key lets anyone forge admin tokens","impact":"high","summary":"The @tensei/auth package falls back to a hard-coded JWT signing key, 'auth-secret-key', when the JWT_SECRET variable is unset. An unauthenticated attacker can sign tokens for any user id and impersonate any account, including administrators.","audience":"developers","category":"package","nicknames":[],"who_cares":["tensei","@tensei/auth","node","jwt"],"confidence":0.7,"fix_status":"unknown","needs_auth":"no","worst_case":"attacker forges admin tokens and takes over any account","analyst_note":"Confirm the fixed version and whether JWT_SECRET unset is the default at https://nvd.nist.gov/vuln/detail/CVE-2026-129552 or the vulncheck advisory.","how_to_check":"- Check whether `JWT_SECRET` is set in the environment of the running Tensei app.\n- Check the installed `@tensei/auth` version in `package.json` or the lockfile; the sources say versions through `0.11.5` are affected.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["jwt-secret-set","newer-version"],"who_is_affected":"Teams running Tensei up to 0.11.5 with @tensei/auth where JWT_SECRET is not set, since the app then signs and accepts tokens with a known key. Deployments that set a strong JWT_SECRET are not exposed through this fallback. The sources do not name a fixed version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000753,"input_tokens":4602,"output_tokens":585,"severity_before":"critical"},"analyst_status":"done","analyst_note":"Confirm the fixed version and whether JWT_SECRET unset is the default at https://nvd.nist.gov/vuln/detail/CVE-2026-129552 or the vulncheck advisory.","search":"'-129552':15A,18A '-2026':14A,17A '0.11.5':40B,100C 'accept':78B,137C 'admin':11A 'administr':84B,145C 'anyon':9A,62B 'app':67B 'arbitrari':134C 'attack':129C 'auth':2A,22B,50B,120C 'auth-bypass':21B 'auth-secret-key':49B,119C 'authent':103C 'back':110C 'bypass':23B,104C 'cms':30B 'code':5A,26B,45B,115C 'contain':101C 'credenti':27B 'cve':13A,16A 'default':61B 'fall':109C 'fix':86B 'forg':10A 'hard':4A,25B,44B,114C 'hard-cod':3A,43B,113C 'hard-coded-credenti':24B 'headless':29B 'headless-cm':28B 'id':75B,136C 'imperson':141C 'includ':82B,144C 'jwt':6A,31B,46B,54B,116C,124C 'key':7A,48B,52B,118C,122C 'let':8A 'maintain':93B 'node':32B 'npm':33B 'open':97B 'packag':34B 'populatecontextfromtoken':139C 'reach':65B 'releas':38B,88B 'repo':94B 'report':90B 'secret':51B,55B,121C,125C 'sign':47B,69B,117C,131C 'still':96B 'tensei':1A,35B,98C 'tensei/auth':19A,20B,36B,107C 'token':12A,71B,132C 'unauthent':128C 'unset':57B,127C 'use':41B 'user':74B,81B,135C,143C 'vulner':105C","nicknames":[],"mitigations":[],"who_affected":"Any Tensei app using @tensei/auth 0.11.5 or earlier that runs without JWT_SECRET (or an explicit secretKey in configureTokens) accepts tokens signed with the public key 'auth-secret-key', so an unauthenticated attacker can impersonate any user including admins. Look at Tensei-based APIs and CMS backends, especially those started with default config. Apps that set a strong, secret JWT_SECRET are not exposed through this fallback.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"developers","plain_action":null,"pkeys":["auth"],"ptokens":["auth","tensei"],"labels":["auth","authbypass","critical","hardcodedcredential","headlesscms","jwt","node","npm","package","tensei"],"campaign_type":null,"search_a":"'-129552':15A,18A '-2026':14A,17A 'admin':11A 'anyon':9A 'auth':2A 'code':5A 'cve':13A,16A 'forg':10A 'hard':4A 'hard-cod':3A 'jwt':6A 'key':7A 'let':8A 'tensei':1A 'tensei/auth':19A 'token':12A","search_b":"'0.11.5':40B 'accept':78B 'administr':84B 'anyon':62B 'app':67B 'auth':22B,50B 'auth-bypass':21B 'auth-secret-key':49B 'bypass':23B 'cms':30B 'code':26B,45B 'credenti':27B 'default':61B 'fix':86B 'hard':25B,44B 'hard-cod':43B 'hard-coded-credenti':24B 'headless':29B 'headless-cm':28B 'id':75B 'includ':82B 'jwt':31B,46B,54B 'key':48B,52B 'maintain':93B 'node':32B 'npm':33B 'open':97B 'packag':34B 'reach':65B 'releas':38B,88B 'repo':94B 'report':90B 'secret':51B,55B 'sign':47B,69B 'still':96B 'tensei':35B 'tensei/auth':20B,36B 'token':71B 'unset':57B 'use':41B 'user':74B,81B","search_c":"'0.11.5':100C 'accept':137C 'administr':145C 'arbitrari':134C 'attack':129C 'auth':120C 'auth-secret-key':119C 'authent':103C 'back':110C 'bypass':104C 'code':115C 'contain':101C 'fall':109C 'hard':114C 'hard-cod':113C 'id':136C 'imperson':141C 'includ':144C 'jwt':116C,124C 'key':118C,122C 'populatecontextfromtoken':139C 'secret':121C,125C 'sign':117C,131C 'tensei':98C 'tensei/auth':107C 'token':132C 'unauthent':128C 'unset':127C 'user':135C,143C 'vulner':105C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T12:17:53+00:00","kev":null,"cvss_vector":"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129552","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129552","severity":null,"published_at":"2026-11-16T12:17:53+00:00","modified_at":"2026-11-16T12:17:53+00:00","first_seen_at":"2026-11-16T12:40:57+00:00","fetched_at":"2026-11-16T12:40:57+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-129552:4106","url":"https://github.com/tenseijs/tensei/blob/630f39038c7751178465f990fb358b0c2d5b1914/packages/auth/src/index.ts","severity":null,"published_at":"2026-11-16T12:44:03+00:00","modified_at":"2026-11-16T12:44:03+00:00","first_seen_at":"2026-11-16T12:44:03+00:00","fetched_at":"2026-11-16T12:44:03+00:00","note":"VulnCheck advisory plus maintainer repo issue #398 (open, no maintainer reply, no SECURITY.md) and source at 630f390 confirm the secretKey fallback 'auth-secret-key' when JWT_SECRET is unset, so the default config is exposed. No fix released; 0.11.5 is the latest on npm.io. Nothing verified: no maintainer page. No PoC, no exploitation seen. Issue #398 also lists unauthenticated media upload, fail-open authz, CSRF, and a SESSION_SECRET fallback; those are separate unassigned reports.","cites":["https://github.com/tenseijs/tensei/blob/630f39038c7751178465f990fb358b0c2d5b1914/packages/auth/src/index.ts"]}],"documents":[{"id":169506,"url":"https://www.vulncheck.com/advisories/tensei-through-0.11.5-authentication-bypass-via-hard-coded-jwt-secret-in-tensei-auth","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"},{"id":169514,"url":"https://github.com/tenseijs/tensei/issues/398","title":"tenseijs/tensei #398: Multiple high-severity vulnerabilities (open, reporter Ikram-4)","kind":"issue","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"discussion","confidence":null,"note":null},{"id":169516,"url":"https://github.com/tenseijs/tensei/blob/630f39038c7751178465f990fb358b0c2d5b1914/packages/auth/src/index.ts","title":"tensei packages/auth/src/index.ts at 630f390 (secretKey fallback)","kind":"other","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}