All vulnerabilities

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
Weakness
Incomplete deny list (CWE-184)CWE-436
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.

From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Workarounds

Limit config write access (administrators, api:write tokens, cluster nodes) to trusted principals.

Workarounds as given by 0xJacky/nginx-ui's security advisory.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • From 2.4.1 before 2.9.2

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
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

References