HighVulnerability
CVE-2026-84317: Nginx UI MCP config add tool skips validation, allowing dangerous directives
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-84317
- Published
- Record updated
- Affected
- github.com/0xJacky/Nginx-UI < 1.9.10-0.20260703131214-23d1934099b0
- Fixed in
- 1.9.10-0.20260703131214-23d1934099b0
- released July 3, 2026, 101 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.7%
Summary
Nginx UI, a web user interface for the Nginx web server, has a flaw in versions prior to 2.4.1. Its validation control, ValidateConfigFile in internal/config/validation.go, blocks dangerous directives such as js_*, perl_*, load_module for the njs and perl modules, and user root, but the MCP tool nginx_config_add (mcp/config/config_add.go) never calls it and writes caller-supplied content directly to disk before reloading nginx. An authenticated MCP caller, or an MCP agent manipulated through prompt injection, can therefore inject the blocked directives and achieve code execution in nginx on deployments where the njs or perl module is available, such as the official Docker image.
Mitigation
Fixed in version 2.4.1.
Topics
Related items
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database
- MediumCVE-2026-137667: ONNX ONNXMLTools cross site scripting in Model VisualizationSimilar attack · NVD/CVE Database
- MediumCVE-2026-137548: Coder dashboard renders unvalidated URL schemes in app status linksSimilar attack · NVD/CVE Database
- HighCVE-2026-137543: LaraDashboard before 1.5.2 contains a server-side request forgery vulnerability that allows authenticated users to…Similar attack · NVD/CVE Database
- LowCVE-2026-137475: vLLM state aliasing flaw in thinking budget batch syncSimilar attack · NVD/CVE Database