CVE-2026-84319

Nginx UI: MCP configuration tools bypass restricted directive validation and allow secondary authenticated users to execute NJS in Nginx worker context

Published Oct 12, 2026 CVSS 3.1 · 8.3 High EPSS < 1% KEV · Not listed
Description
Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, the regular HTTP configuration API rejects restricted Nginx directives such as load_module, js_import, and js_content. However, the MCP configuration interface allows a secondary authenticated user to write and apply equivalent restricted configuration content. This allows the user to load ngx_http_js_module.so, import attacker-controlled JavaScript, reload Nginx, and execute NJS in the Nginx worker context. This issue is fixed in version 2.4.1.

Analysis

AI-generated

Technical impact

The vulnerability in Nginx UI allows a secondary authenticated user to bypass the web interface’s restriction of critical Nginx directives such as load_module, js_import, and js_content. By writing and applying configuration through the MCP interface, the attacker can load the ngx_http_js_module.so module, inject custom JavaScript, reload Nginx, and execute the JavaScript in the worker context. This capability effectively grants the attacker remote code execution on the server, enabling full compromise of confidentiality, integrity, and availability. The weakness is a CWE-693 type flaw, representing improper control of secure booleans, which underpins the bypass of safe-guarded directives.

Affected Systems

The issue affects all installations of Nginx UI older than version 2.4.1. The product is produced by 0xJacky and any deployment using the web user interface prior to the noted release is vulnerable.

Risk and Exploitability

The CVSS score of 8.3 indicates a high‑severity vulnerability. The exploit requires the attacker to have secondary authenticated access to the MCP configuration interface, but once authenticated, no additional privileges are needed. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, suggesting it has not yet been widely exploited in the wild. Nonetheless, the potential impact of executing arbitrary JavaScript in the Nginx worker makes this a serious threat for environments where secondary users exist.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Nginx UI to version 2.4.1 or later, which removes the MCP configuration route that permits restricted directives.
  • Revoke or limit secondary authenticated user permissions, ensuring that only administrators can access the MCP configuration interface or that secondary users are removed from that interface entirely.
  • If an upgrade cannot be performed immediately, disable the ngx_http_js_module by removing any load_module, js_import, or js_content directives from the Nginx configuration and restart the server to prevent NJS execution in the worker context.

Generated by OpenCVE AI on October 13, 2026 at 01:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-5r62-gj48-897x Nginx UI: MCP configuration tools bypass restricted directive validation and allow secondary authenticated users to execute NJS in Nginx worker context
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared 0xjacky
0xjacky nginx-ui
Vendors & Products 0xjacky
0xjacky nginx-ui
Type Values Removed Values Added
Description Nginx UI is a web user interface for the Nginx web server. Prior to 2.4.1, the regular HTTP configuration API rejects restricted Nginx directives such as load_module, js_import, and js_content. However, the MCP configuration interface allows a secondary authenticated user to write and apply equivalent restricted configuration content. This allows the user to load ngx_http_js_module.so, import attacker-controlled JavaScript, reload Nginx, and execute NJS in the Nginx worker context. This issue is fixed in version 2.4.1.
Title Nginx UI: MCP configuration tools bypass restricted directive validation and allow secondary authenticated users to execute NJS in Nginx worker context
Weaknesses CWE-693
References
Metrics cvssV3_1

{'score': 8.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H'}

Weaknesses
  • CWE-693

    Protection Mechanism Failure

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Oct 13, 2026, 8:23 PM
Reserved
Sep 1, 2026, 4:17 PM
Status
Deferred
Published
Oct 12, 2026, 9:17 PM
Modified
Oct 13, 2026, 9:19 PM