Skip to main content

CVE-2026-84314 — Vulnerability in github.com/0xJacky/Nginx-UI

HIGH

Nginx UI: Account Takeover via Missing `RequireSecureSession` on User Management Endpoint

Published October 15, 2026Updated October 19, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.45%). Schedule for your next planned update.

Does your project use an affected github.com/0xJacky/Nginx-UI version?

Paste your go.sum to check it for CVE-2026-84314 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my go.sum

Summary

Summary

POST /api/users/:id allows any authenticated user to change any other user's password without RequireSecureSession (2FA verification). In contrast, the self password change endpoint POST /api/user/password correctly requires RequireSecureSession. This inconsistency enables any authenticated user to take over the initial admin account (user ID 1) by simply changing its password.

Details

nginx-ui enforces RequireSecureSession middleware on sensitive operations such as self password change (api/user/router.go:55), self profile update (api/user/router.go:54), settings modification (api/settings/router.go:12), and config file deletion/rename (api/config/router.go:16-21).

However, the user management endpoint registered in InitManageUserRouter (api/user/user.go:31-68) is mounted on the g router group (router/routers.go:92) which only applies middleware.AuthRequired() and middleware.Proxy() — no RequireSecureSession().

As a result, POST /api/users/:id with a password field in the JSON body updates the target user's password with only basic JWT authentication. No 2FA or secure session verification is performed, even if the target user has 2FA enabled.

The attack flow:

  1. Attacker authenticates as any user (e.g., user ID 2).
  2. Attacker sends POST /api/users/1 with {"password": "attacker-chosen"}.
  3. Admin (user ID 1) password is changed. All existing admin tokens are invalidated (api/user/user.go:48-49).
  4. Attacker logs in as admin with the new password.
  5. Admin is locked out.

PoC

poc.zip

Please extract the uploaded compressed file before proceeding

  1. docker compose up -d
  2. python3 poc.py

Impact

  • Any authenticated user can change any other user's password, including the initial admin (user ID 1).
  • Full account takeover of the admin account.

Advisory Timeline

  • First published October 15, 2026 (42 days ago).
  • Last revised October 19, 2026 — 4 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/0xJacky/Nginx-UI to 1.9.10-0.20260703131214-23d1934099b0 or later
go get github.com/0xJacky/Nginx-UI@v1.9.10-0.20260703131214-23d1934099b0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Go (1).

PackageFixed In
github.com/0xJacky/Nginx-UI Go · Affected: All versions1.9.10-0.20260703131214-23d1934099b0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-285
    Improper AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Frequently Asked Questions

What is CVE-2026-84314?
Nginx UI: Account Takeover via Missing `RequireSecureSession` on User Management Endpoint. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
How do I check if my project is affected by CVE-2026-84314?
CVE-2026-84314 affects github.com/0xJacky/Nginx-UI. It has a 0.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-84314 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.8

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.45%
EPSS percentile: 31

This is a below-median EPSS score — only 31% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-2gc7-j998-5xx6
GO-2026-6771

Related CVEs

  • CVE-2026-42238
    CRITICAL

    Nginx-UI is Vulnerable to Unauthenticated Remote Code Execution via Backup Restore

  • CVE-2024-23827
    CRITICAL

    Nginx-UI vulnerable to arbitrary file write through the Import Certificate feature

  • CVE-2026-107811
    HIGH

    0xJacky/nginx-ui /api/nodes Leaks Cluster Node Tokens and Allows Cross-Node Impersonation as initUser

  • CVE-2026-107809
    HIGH

    Nginx-UI AuthRequired token cookie fallback enables CSRF against management APIs

  • CVE-2026-33030
    HIGH

    nginx-UI has Unencrypted Storage of DNS API Tokens and ACME Private Keys

  • CVE-2026-84317
    HIGH

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

  • CVE-2026-84318
    HIGH

    Nginx UI: MCP `nginx_config_add` Bypasses Directive Validation — Authenticated RCE

  • CVE-2026-84316
    HIGH

    Nginx UI: nginx config directive denylist (ValidateConfigFile) is bypassable via same-line ";" separation → authenticated directive injection (RCE on the official image)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my go.sum