Servers and applications
GHSA-xwxf-xc5j-p7hx
Directive denylist bypass via mid-token '#' tokenizer differential (incomplete fix of GHSA-cf23-7qxj-xmhr)
- Severity
- High 7.2
- Published
- 20 Nov 2026
- Last changed
- 20 Nov 2026
- Added to UpHeron
- 20 Nov 2026
- Fixed in
- 2.9.2
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Read data · Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H- Sources
- Project advisories (GitHub)
Description
The config directive denylist's tokenizer did not split tokens like nginx's ngx_conf_read_token. It ended a token at a mid-token # and skipped the rest of the line as a comment, while nginx treats that # as an ordinary character. Restricted directives after #; (njs and perl load_module, js_*, perl_*, user root, lua_package_*) therefore passed every config write path, including the config API, site saves and the MCP config tools. This is an incomplete fix of GHSA-cf23-7qxj-xmhr. Exploiting it needs an administrator-equivalent credential; on the official image the njs module is available.
Summary The directive denylist in internal/config/validation.go (ValidateConfigFile, ValidateConfigFileBytes, ValidateConfigContentBytes) uses a custom lexer, introduced to fix the same-line ';' bypass (GHSA-cf23-7qxj-xmhr). Its readUnquotedToken stops a token at '#', and nextToken then treats '#' as a comment start and skips to end of line.
Workarounds
Limit config write access (administrators, api:write tokens, cluster nodes) to trusted principals.
Affected software
| Software | Affected versions |
|---|---|
Nginx UIServers and applications · github:0xjacky/nginx-ui |
|
About Nginx UI
Yet another WebUI for Nginx
- Docker Hub pulls
- 1,512,532Docker Hub, 15 Nov 2026
- GitHub stars
- 11,783GitHub, 15 Nov 2026
- Forks
- 921GitHub, 15 Nov 2026
- Latest release
- v3.0.3GitHub, 15 Nov 2026
- Released
- 12 Nov 2026GitHub
- License
- AGPL-3.0GitHub
- First published on GitHub
- 19 Feb 2021GitHub
Source code Website Docker image
Vulnerabilities in Nginx UI
- In our list
- 75
- Published in the last 12 months
- 67
- Critical, last 12 months
- 11
- High, last 12 months
- 34
- Known exploited
- 0
- GHSA-57f3-39rr-2mwmNginx-UI certificate path validators read arbitrary absolute paths, enabling a file existence oracle and process-crash DoSLow 3.8 20 Nov 2026
- GHSA-c2cq-7453-7xpjRead-only service tokens still receive stored secrets (incomplete fix of GHSA-pw4f-pq6v-x57r)Medium 6.5 20 Nov 2026
- GHSA-2rjr-44wx-8qpgJwtSecret Overwrite via Settings API Causes Session Invalidation and MonopolyLow 3.8 12 Nov 2026
- GHSA-p355-qjwh-8hgmOpenAI API Key Exfiltration via Unprotected BaseUrl Setting ChangeLow 2.7 12 Nov 2026
- GHSA-hf3h-p3fr-3f2rFull backup exports expose reusable interactive login sessions to management credentialsMedium 6.6 12 Nov 2026
- GHSA-mfj4-8rf3-rpq6Unauthenticated dependency inventory + version disclosure via `/api/licenses*`Medium 5.3 12 Nov 2026
References
- GitHub Advisory Database https://github.com/advisories/GHSA-xwxf-xc5j-p7hx
- github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-xwxf-xc5j-p7hx