All vulnerabilities

Servers and applications

CVE-2026-84317

MCP nginx_config_add skips config directive validation → authenticated nginx directive injection (RCE on the official image)

Severity
High 8.8
Published
17 Jul 2026
Last changed
13 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.4.1
Exploit chance
0.5% in the next 30 daysHigher than 42% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper input validation (CWE-20)Protection mechanism failure (CWE-693)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Also known as
GHSA-76pm-mq2q-9gcr
Sources
CVE Program, Project advisories (GitHub)

Description

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).

An authenticated MCP principal — or a connected AI agent subverted via prompt injection — bypasses the directive-validation security control and injects directives the project explicitly blocks elsewhere.

From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · cna:0xjacky|nginx-ui
  • Every version before 2.4.1
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • Every version up to 2.3.11

About Nginx UI

Yet another WebUI for Nginx

From its GitHub repository.
Docker Hub pulls
1,512,532Docker Hub, 15 Nov 2026
GitHub stars
11,783GitHub, 15 Nov 2026
Forks
921GitHub, 15 Nov 2026
Latest release
v3.0.3GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
License
AGPL-3.0GitHub
First published on GitHub
19 Feb 2021GitHub

References