All vulnerabilities

Servers and applications

CVE-2026-42223

Settings API Exposes Protected Secrets

Severity
Medium 6.5
Published
27 Apr 2026
Last changed
26 Oct 2026
Added to UpHeron
1 Nov 2026
Fixed in
2.3.8
Exploit chance
0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Information exposure (CWE-200)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Also known as
GHSA-q4w7-56hr-83rm
Sources
NVD, Project advisories (GitHub)

Description

The GetSettings API handler (api/settings/settings.go:24-65) serializes all settings structs to JSON and returns them to authenticated users. Many sensitive fields are tagged with protected:"true" - however, this tag is only enforced during writes (via ProtectedFill in SaveSettings) and is completely ignored during reads. This exposes 40+ protected fields including JwtSecret (enabling auth token forgery), NodeSecret (enabling cluster node impersonation), OIDC ClientSecret (enabling OAuth account takeover), and the IP whitelist configuration.

api/settings/settings.go:126-135 - ProtectedFill only used during saves

ProtectedFill prevents overwriting protected fields during SaveSettings, but GetSettings has no corresponding filter. The protection is asymmetric - secrets can be read but not overwritten.

  • Secret (protected) - used for cluster node authentication
  • SkipInstallation (protected), Demo (protected)
  • ClientId, ClientSecret, Endpoint, RedirectUri, Scopes, Identifier
From 0xJacky/nginx-ui's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Nginx UIServers and applications · cpe:a:nginxui:nginx_ui
  • Every version before 2.3.8
Nginx UIServers and applications · github:0xjacky/nginx-ui
  • Every version before 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

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42223
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42223
  • GitHub Advisory Database https://github.com/advisories/GHSA-q4w7-56hr-83rm
  • github.com https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-q4w7-56hr-83rm