{"id":"CVE-2026-129952","kind":"vulnerability","aliases":["CVE-2026-129952"],"related":[],"title":"NodePress: hardcoded JWT fallback key lets anyone forge admin tokens","description":"NodePress through 8.5.1 contains an authentication bypass vulnerability that allows unauthenticated remote attackers to gain administrator access by forging JWTs with the hardcoded 'nodepress-secret' fallback key. Attackers can sign HS256 bearer tokens with the default issuer, audience, and role 'admin' to access administrator-only APIs for article, comment, options, and file management.","summary":"NodePress through 8.5.1 falls back to a hardcoded signing key named 'nodepress-secret' when no key is configured. An unauthenticated attacker can sign their own HS256 token with that key, claim the admin role, and use administrator APIs for articles, comments, options and files.","severity":"critical","cvss":9.8,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"nodepress","fixed":[],"affected":"<= 8.5.1","ecosystem":"github"}],"ecosystems":[],"tags":["auth-bypass","hardcoded-secret","jwt","nestjs","nodepress","npm","package","self-hosted"],"not_affected_if":["custom-jwt-secret-set","np_auth_jwt_secret-set"],"how_to_check":"- Version: NodePress (surmon-china/nodepress) 8.5.1 or earlier is affected (package.json version).\n- Config: in the app's environment, look for NP_AUTH_JWT_SECRET. If it is unset, src/app.config.ts uses the public default 'nodepress-secret' and anyone can forge admin tokens. If it is set to a long random value, the fallback is not used.\n- Also check NP_AUTH_JWT_ISSUER and NP_AUTH_JWT_AUDIENCE; the defaults are 'nodepress' and 'nodepress-api'.","fix":"No fixed version published as of 2026-11-16: the reporter's issue #143 is still open and the changelog's newest entry is 8.5.0. Until a release ships, set NP_AUTH_JWT_SECRET to a long random value (32+ bytes) and restart; this overrides the fallback key. Rotate it if it was ever unset, and treat sessions and admin actions from the exposed period as suspect.","status":"open","published_at":"2026-11-16T15:17:30+00:00","first_seen_at":"2026-11-16T15:37:57+00:00","triaged_at":"2026-11-16T15:39:57+00:00","updated_at":"2026-11-16T15:42:40+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-16T15:39:57Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"internet","title":"NodePress: hardcoded JWT fallback key lets anyone forge admin tokens","impact":"high","summary":"NodePress through 8.5.1 falls back to a hardcoded signing key named 'nodepress-secret' when no key is configured. An unauthenticated attacker can sign their own HS256 token with that key, claim the admin role, and use administrator APIs for articles, comments, options and files.","audience":"businesses","category":"package","nicknames":[],"who_cares":["nodepress","self-hosted","jwt"],"confidence":0.8,"fix_status":"unknown","needs_auth":"no","worst_case":"Attacker gains administrator access and manages articles, comments, options and files.","analyst_note":"Confirm the fixed version and whether a configuration setting overrides the fallback key; check the vendor page and the vulncheck advisory.","how_to_check":"- Check the installed NodePress version, `8.5.1` or earlier is affected.\n- Check whether the JWT signing key is set in configuration; if it is unset, the hardcoded fallback `nodepress-secret` is in use.\n- unknown for any further check the sources do not describe.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["custom-jwt-secret-set"],"who_is_affected":"NodePress deployments up to and including 8.5.1 that rely on the default JWT fallback key are exposed, since the key is public in the code. Installations that set their own strong signing key and are not reachable from the internet are less exposed. The sources do not state a fixed version.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"yes","severity_if_unknown":"critical"},"cost_usd":0.000751,"input_tokens":4610,"output_tokens":579,"severity_before":"critical"},"analyst_status":"done","analyst_note":"Confirm the fixed version and whether a configuration setting overrides the fallback key; check the vendor page and the vulncheck advisory.","search":"'-129952':13A,16A '-2026':12A,15A '8.5.1':34B,79C 'access':93C,120C 'admin':9A,65B,118C 'administr':69B,92C,122C 'administrator-on':121C 'allow':86C 'anyon':7A 'api':70B,124C 'articl':72B,126C 'attack':53B,89C,105C 'audienc':115C 'auth':19B 'auth-bypass':18B 'authent':82C 'back':36B 'bearer':109C 'bypass':20B,83C 'claim':63B 'comment':73B,127C 'configur':50B 'contain':80C 'cve':11A,14A 'default':113C 'fall':35B 'fallback':4A,103C 'file':76B,130C 'forg':8A,95C 'gain':91C 'hardcod':2A,22B,39B,99C 'hardcoded-secret':21B 'host':31B 'hs256':58B,108C 'issuer':114C 'jwt':3A,24B 'jwts':96C 'key':5A,41B,48B,62B,104C 'let':6A 'manag':131C 'name':42B 'nestj':25B 'nodepress':1A,17A,26B,32B,44B,77C,101C 'nodepress-secret':43B,100C 'npm':27B 'option':74B,128C 'packag':28B 'remot':88C 'role':66B,117C 'secret':23B,45B,102C 'self':30B 'self-host':29B 'sign':40B,55B,107C 'token':10A,59B,110C 'unauthent':52B,87C 'use':68B 'vulner':84C","nicknames":[],"mitigations":[],"who_affected":"Self-hosted NodePress (surmon-china/nodepress, NestJS CMS API) deployments at 8.5.1 or earlier that boot without NP_AUTH_JWT_SECRET accept admin tokens signed with the public key 'nodepress-secret'. Anyone who can reach the API can then use admin endpoints for articles, comments, options and files. Deployments that set their own long random NP_AUTH_JWT_SECRET can skip this. The sources do not name a fixed release.","tier":"B","verified":{"how_to_check":{"at":"2026-11-16T15:42:40Z","by":"analyst","doc":"https://www.vulncheck.com/advisories/nodepress-through-8.5.1-authentication-bypass-via-default-jwt-signing-secret","run_id":4131}},"analyst_revisit_at":null,"fix_status":"none","audience":"businesses","plain_action":null,"pkeys":["nodepress"],"ptokens":["nodepress"],"labels":["authbypass","critical","hardcodedsecret","jwt","nestjs","nodepress","npm","package","selfhosted"],"campaign_type":null,"search_a":"'-129952':13A,16A '-2026':12A,15A 'admin':9A 'anyon':7A 'cve':11A,14A 'fallback':4A 'forg':8A 'hardcod':2A 'jwt':3A 'key':5A 'let':6A 'nodepress':1A,17A 'token':10A","search_b":"'8.5.1':34B 'admin':65B 'administr':69B 'api':70B 'articl':72B 'attack':53B 'auth':19B 'auth-bypass':18B 'back':36B 'bypass':20B 'claim':63B 'comment':73B 'configur':50B 'fall':35B 'file':76B 'hardcod':22B,39B 'hardcoded-secret':21B 'host':31B 'hs256':58B 'jwt':24B 'key':41B,48B,62B 'name':42B 'nestj':25B 'nodepress':26B,32B,44B 'nodepress-secret':43B 'npm':27B 'option':74B 'packag':28B 'role':66B 'secret':23B,45B 'self':30B 'self-host':29B 'sign':40B,55B 'token':59B 'unauthent':52B 'use':68B","search_c":"'8.5.1':79C 'access':93C,120C 'admin':118C 'administr':92C,122C 'administrator-on':121C 'allow':86C 'api':124C 'articl':126C 'attack':89C,105C 'audienc':115C 'authent':82C 'bearer':109C 'bypass':83C 'comment':127C 'contain':80C 'default':113C 'fallback':103C 'file':130C 'forg':95C 'gain':91C 'hardcod':99C 'hs256':108C 'issuer':114C 'jwts':96C 'key':104C 'manag':131C 'nodepress':77C,101C 'nodepress-secret':100C 'option':128C 'remot':88C 'role':117C 'secret':102C 'sign':107C 'token':110C 'unauthent':87C 'vulner':84C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T15:17:30+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-129952","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129952","severity":null,"published_at":"2026-11-16T15:17:30+00:00","modified_at":"2026-11-16T15:17:30+00:00","first_seen_at":"2026-11-16T15:37:57+00:00","fetched_at":"2026-11-16T15:37:57+00:00","note":null},{"source":"analyst","external_id":"CVE-2026-129952:4131","url":"https://github.com/surmon-china/nodepress/issues/143","severity":null,"published_at":"2026-11-16T15:42:40+00:00","modified_at":"2026-11-16T15:42:40+00:00","first_seen_at":"2026-11-16T15:42:40+00:00","fetched_at":"2026-11-16T15:42:40+00:00","note":"Read vulncheck advisory, reporter issue #143 (open, no PoC, no maintainer reply) and v8.5.1 app.config.ts: jwtSecret default 'nodepress-secret' via env NP_AUTH_JWT_SECRET, which overrides it. No fix released; changelog newest is 8.5.0. Not verified: no vendor advisory exists; fix claim rests on issue and changelog. Sibling CVE-2026-129955 (default admin password) is from the same issue.","cites":["https://github.com/surmon-china/nodepress/issues/143","https://github.com/surmon-china/nodepress/blob/v8.5.1/src/app.config.ts"]}],"documents":[{"id":170635,"url":"https://www.vulncheck.com/advisories/nodepress-through-8.5.1-authentication-bypass-via-default-jwt-signing-secret","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":170701,"url":"https://github.com/surmon-china/nodepress/issues/143","title":"NodePress #143: default JWT secret / default admin password (open)","kind":"issue","source":"analyst","publisher":null,"text":null,"published_at":null,"relation":"describes","confidence":null,"note":null},{"id":170706,"url":"https://github.com/surmon-china/nodepress/blob/v8.5.1/src/app.config.ts","title":"NodePress v8.5.1 src/app.config.ts","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"}