highCVSS 8.5Vulnerability

GHSA-wr32-99hh-6f35

### Summary An authenticated user can perform Server-Side Request Forgery (SSRF) by creating a cluster node pointing to an arbitrary internal URL and then sending API requests with the `X-Node-ID` header. The Proxy middleware forwards these requests to the attacker-specified internal address, bypassing network segmentation and enabling access to services bound to localhost or internal networks. ### Details The nginx-ui Proxy middleware (`internal/middleware/proxy.go`) intercepts API requests containing an `X-Node-ID` header and forwards them to the URL of the corresponding cluster node. An attacker can: 1. Read the `node_secret` from `GET /api/settings` (accessible to any authenticated user) 2. Create a cluster node via `POST /api/nodes` pointing to any internal URL: ```json { "name": "ssrf_node", "url": "http://127.0.0.1:51820", "token": "<node_secret>", "enabled": true } ``` 3. Send any API request with the `X-Node-ID` header set to the created node's ID: ``` GET /api/settings HTTP/1.1 Authorization: <token> X-Node-ID: 1 ``` 4. The Proxy middleware forwards this request to `http://127.0.0.1:51820/api/settings`, making a server-side request to the internal address. **Vulnerable code path:** - `internal/middleware/proxy.go` — `Proxy()`: no validation of the node URL; allows `127.0.0.1`, `localhost`, internal IPs, cloud metadata endpoints, etc. The node URL is not restricted to external addresses or validated against an allowlist. Combined with the njs Code Injection vulnerability (separate advisory), this SSRF is used to trigger the njs payload executing on an internal-only nginx port, completing the RCE chain. ### PoC ```python import requests BASE = "http://TARGET:9000" TOKEN = "<authenticated_jwt_token>" HDR = {"Authorization": TOKEN} # Step 1: Get node_secret settings = requests.get(f"{BASE}/api/settings", headers=HDR).json() node_secret = settings["node"]["secret"] # Step 2: Create SSRF node pointing to internal service resp = request

Properties

ghsa_id
GHSA-wr32-99hh-6f35
summary
Nginx-UI has Server-Side Request Forgery (SSRF) via Cluster Proxy Middleware that Allows Access to Internal Services
severity
high
cvss_score
8.5
cve_id
GHSA-wr32-99hh-6f35
cvss_vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N
is_ghsa_only
true
ghsa_published
2026-04-29T20:54:54Z
source_url
https://github.com/advisories/GHSA-wr32-99hh-6f35
ghsa_updated
2026-04-29T20:54:55Z

Related Entities (4)

HAS_WEAKNESS (1)

[Weakness]Server-Side Request Forgery (SSRF)

REPORTED_BY (1)

[Source]GitHub Advisory Database

VULNERABLE_TO (1)

[Software]go/github.com/0xJacky/Nginx-UI

AFFECTS (1)

[Software]go/github.com/0xJacky/Nginx-UI

Explore deeper with Ninja Signal's threat intelligence graph