CVE-2026-144962: Nginx UI 2.4.1 before 2.9.2 Config Directive Denylist Bypass via Mid-Token '#'
Nginx UI from 2.4.1 before 2.9.2 contains a directive denylist bypass in internal/config/validation.go that allows authenticated users with configuration write access to smuggle blocked directives by placing them after a token containing '#;'. Attackers can submit crafted content through the config API, site and stream saves, or MCP tools to load njs or perl modules and gain code execution in the nginx worker.
Affected Software
Event History
Frequently Asked Questions
Which deployments are affected?
Nginx UI versions from 2.4.1 up to, but not including, 2.9.2 are affected. Exploitation requires access to an interface that can save configuration content, including the config API, site or stream save functions, or MCP tools.
What level of access does an attacker need?
The attacker must be authenticated and have configuration write access. No user interaction is required once that access is available.
What is the practical impact of successful exploitation?
An attacker can bypass the directive denylist by placing blocked directives after a token containing "#;". This can permit loading njs or perl modules and result in code execution in the nginx worker.
How can I determine whether configuration may have been maliciously changed?
Review configuration content submitted through the config API, site and stream saves, and MCP tools for a "#;" token followed by directives that should be blocked. Pay particular attention to directives that load njs or perl modules.