---
id: "CVE-2026-129955"
page: "https://infrastack.ai/live/CVE-2026-129955"
kind: "vulnerability"
aliases: ["CVE-2026-129955"]
title: "NodePress through 8.5.1: default admin password 'root' allows admin login on installs that never set one"
severity: "critical"
cvss: 9.8
epss: null
exploited: false
status: "open"
category: "other"
products: [{"name": "surmon-china/nodepress", "fixed": [], "affected": "<= 8.5.1", "ecosystem": "github"}]
ecosystems: ["npm"]
tags: ["cms", "nestjs", "nodepress", "other", "self-hosted"]
not_affected_if: ["admin-password-set", "default-config-overridden", "np_admin_default_password-set"]
published_at: "2026-11-16T15:17:31+00:00"
first_seen_at: "2026-11-16T15:37:57+00:00"
updated_at: "2026-11-16T15:42:33+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129955", "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:33+00:00", "cites": ["https://github.com/surmon-china/nodepress/issues/143", "https://github.com/surmon-china/nodepress/releases"]}]
exploit_sources: []
---

# NodePress through 8.5.1: default admin password 'root' allows admin login on installs that never set one

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

NodePress through version 8.5.1 ships with a hardcoded default admin password of 'root' that is used when NP_ADMIN_DEFAULT_PASSWORD is not set. An unauthenticated attacker who sends the base64-encoded value to the admin login endpoint gets admin tokens and full control of the site.

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

## Affected

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

## How to check

- Version: v8.5.1 is the latest release and is affected; the maintainer has published no fixed version as of 2026-11-16.
- Check the environment of the running service: NP_ADMIN_DEFAULT_PASSWORD unset means 'root' is the fallback (src/app.config.ts L64).
- Per the source, 'root' is only compared when no password hash is stored in the DB (src/modules/admin/admin.service.profile.ts L48-54). The check is whether the admin document in MongoDB has a password set.
- Also check NP_AUTH_JWT_SECRET: the reporter says an unset value defaults to a public string and lets attackers forge admin JWTs (not confirmed by the maintainer).

## Fix

No fixed release as of 2026-11-16: the latest release is v8.5.1 and issue #143 is open with no maintainer reply. Workaround: set NP_ADMIN_DEFAULT_PASSWORD to a long random value and set the admin password through the profile update. Also set NP_AUTH_JWT_SECRET to at least 32 random bytes. Restrict /admin/login to trusted networks.

## Timeline

- 2026-11-16T15:37:57+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-129955
- 2026-11-16T15:42:33+00:00 analyst https://github.com/surmon-china/nodepress/issues/143 — VulnCheck advisory and public GitHub issue #143 (Ikram-4) read; no maintainer fix or advisory found. Ecosystem changed from npm to github: I found no npm package, and the project is an app repo. No PoC link, no exploitation reports. The advisory cites CVSS 9.3 (v4). Verified nothing: no vendor or maintainer statement exists.

## Documents

- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/nodepress-through-8.5.1-authentication-bypass-via-default-administrator-password
- [describes] NodePress #143: default JWT secret / default admin password (open) https://github.com/surmon-china/nodepress/issues/143
- [mentions] surmon-china/nodepress releases (latest v8.5.1) https://github.com/surmon-china/nodepress/releases

## From the sources

NodePress through 8.5.1 contains an authentication bypass vulnerability that allows unauthenticated attackers to gain administrator access by using the hardcoded default password 'root'. Attackers can send base64-encoded 'root' to POST /admin/login when NP_ADMIN_DEFAULT_PASSWORD is unset to obtain admin tokens and fully control the site.

---

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