{"id":"CVE-2026-84317","published":"2026-10-12T20:59:58Z","modified":"2026-10-13T17:50:15Z","title":"Nginx UI: MCP nginx_config_add skips config directive validation → authenticated nginx directive injection (RCE on the…","vendor":"0xJacky","product":"nginx-ui","tier":"tail","description":{"text":"Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, internal/config/validation.go (ValidateConfigFile) is a security control that blocks dangerous nginx directives — js_*, perl_*, load_module of the njs/perl modules, and user root. It is enforced on three of the four config-write paths: api/config/add.go, api/config/modify.go, and mcp/config/config_modify.go. The fourth path — the MCP tool nginx_config_add (mcp/config/config_add.go) — does NOT call it: it writes the caller-supplied content straight to disk and reloads nginx. An authenticated MCP caller (or an MCP agent induced via prompt injection) can therefore inject exactly the directives the control is meant to block, leading to nginx code execution on deployments where the njs/perl module is available (e.g. the official Docker image). This issue is fixed in version 2.4.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00694,"percentile":0.48285,"provenance":"source"},"cwes":[{"id":"CWE-20","name":"Improper Input Validation"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-76pm-mq2q-9gcr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/0xJacky/nginx-ui/commit/23d1934099b05b2a01589b48129dc3d3159d91c2","tags":["x_refsource_MISC"]},{"url":"https://github.com/0xJacky/nginx-ui/releases/tag/v2.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":15.8,"factors":[{"name":"EPSS percentile","points":9.66},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"0xjacky","affectedVersions":[{"vendor":"0xJacky","product":"nginx-ui","versions":["< 2.4.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-10-13T17:49:31.431717Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/0xJacky/Nginx-UI","vulnerableRanges":["<1.9.10-0.20260703131214-23d1934099b0"],"patched":["1.9.10-0.20260703131214-23d1934099b0"],"from":["GHSA-76pm-mq2q-9gcr","GO-2026-6779"],"provenance":"source"}],"summary":{"text":"Nginx UI (by 0xJacky) has a flaw in its MCP tool nginx_config_add (mcp/config/config_add.go), which writes caller-supplied configuration content directly to disk and reloads nginx without invoking the validation routine that blocks dangerous directives. An authenticated MCP caller, including an MCP agent manipulated via prompt injection, can use this to inject the blocked directives, such as js_*, perl_*, load_module for the njs/perl modules, and user root, which can lead to code execution in nginx where the njs or perl module is available, for example in the official Docker image.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:51Z"},"euvd":{"id":"EUVD-2026-97895","exploited":false,"provenance":"source"}}