High severity · published Oct 12, 2026
CVE-2026-84318
Nginx UI: MCP `nginx_config_add` Bypasses Directive Validation — Authenticated RCE
8.8
CVSS
0.8%
EPSS
No
On KEV
Description
Nginx UI is a web user interface for the Nginx web server. From 2.0.0-rc.6 until 2.4.1, the MCP tool nginx_config_add writes nginx configuration files to disk and triggers an nginx reload without calling config.ValidateConfigFile. The identical flow in the REST API (POST /api/configs) does call that function and correctly rejects dangerous directives. An authenticated attacker can exploit this gap to write config files containing any blocked directive (perl, js_import, load_module, user root, etc.), bypassing nginx-ui's entire security layer. On a server with the nginx Perl, njs, or Lua module loaded, this is post-authentication Remote Code Execution. This issue is fixed in version 2.4.1.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.8% · higher than 57% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
NG
nginx-ui · 0xJacky
>= 2.0.0-rc.6, < 2.4.1 · source: vendor
Affected product
NG
nginx-ui
0xJacky
More from nginx-ui
9.9
CVE-2026-44015
Nginx UI: Server-Side Request Forgery (SSRF) via Cluster Proxy Middleware Allows Access to Internal Services
9.9
CVE-2026-33030
Nginx UI: Unencrypted Storage of DNS API Tokens and ACME Private Keys
9.8
CVE-2026-42238
Unauthenticated Remote Code Execution via Backup Restore in nginx-ui
9.8
CVE-2026-42222
nginx-ui: Unauthenticated first-boot instance claim via POST /api/install allows remote bootstrap takeover
9.8
CVE-2026-42221
nginx-ui: Unauthenticated First-Run Installer Allows Remote Initial Admin Claim