---
id: "CVE-2026-129952"
page: "https://infrastack.ai/live/CVE-2026-129952"
kind: "vulnerability"
aliases: ["CVE-2026-129952"]
title: "NodePress: hardcoded JWT fallback key lets anyone forge admin tokens"
severity: "critical"
cvss: 9.8
epss: null
exploited: false
status: "open"
category: "package"
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"]
published_at: "2026-11-16T15:17:30+00:00"
first_seen_at: "2026-11-16T15:37:57+00:00"
updated_at: "2026-11-16T15:42:40+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129952", "first_seen_at": "2026-11-16T15:37:57+00:00"}, {"source": "analyst", "url": "https://github.com/surmon-china/nodepress/issues/143", "first_seen_at": "2026-11-16T15:42:40+00:00", "cites": ["https://github.com/surmon-china/nodepress/issues/143", "https://github.com/surmon-china/nodepress/blob/v8.5.1/src/app.config.ts"]}]
exploit_sources: []
---

# NodePress: hardcoded JWT fallback key lets anyone forge admin tokens

Link for people: https://infrastack.ai/live/CVE-2026-129952 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- github:nodepress affected <= 8.5.1 fixed no fixed version listed

## How to check

- Version: NodePress (surmon-china/nodepress) 8.5.1 or earlier is affected (package.json version).
- 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.
- 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.

## Timeline

- 2026-11-16T15:37:57+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129952
- 2026-11-16T15:42:40+00:00 analyst https://github.com/surmon-china/nodepress/issues/143 — 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.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/nodepress-through-8.5.1-authentication-bypass-via-default-jwt-signing-secret
- [describes] NodePress #143: default JWT secret / default admin password (open) https://github.com/surmon-china/nodepress/issues/143
- [describes] NodePress v8.5.1 src/app.config.ts https://github.com/surmon-china/nodepress/blob/v8.5.1/src/app.config.ts

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
