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.
Published: 2026-10-12
Score: 8.3 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

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.

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

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

Tue, 13 Oct 2026 22:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Mon, 12 Oct 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared 0xjacky
0xjacky nginx-ui
Vendors & Products 0xjacky
0xjacky nginx-ui

Mon, 12 Oct 2026 21:15:00 +0000

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'}


Subscriptions

0xjacky Nginx-ui
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-13T20:23:50.083Z

Reserved: 2026-09-01T16:17:43.080Z

Link: CVE-2026-84319

cve-icon Vulnrichment

Updated: 2026-10-13T20:13:19.747Z

cve-icon NVD

Status : Deferred

Published: 2026-10-12T21:17:22.517

Modified: 2026-10-13T21:19:11.433

Link: CVE-2026-84319

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T01:15:15Z

Weaknesses
  • CWE-693

    Protection Mechanism Failure