All vulnerabilities

Servers and applications

CVE-2026-84314

Account Takeover via Missing `RequireSecureSession` on User Management Endpoint

Severity
High 8.7
Published
17 Jul 2026
Last changed
13 Oct 2026
Added to UpHeron
3 Nov 2026
Fixed in
2.4.1
Exploit chance
0.4% in the next 30 daysHigher than 36% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Improper authorization (CWE-285)Missing authorization (CWE-862)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
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
Also known as
GHSA-2gc7-j998-5xx6
Sources
CVE Program, Project advisories (GitHub)

Description

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.

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

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

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