# CVE-2026-42223: nginx-ui: Settings API Exposes Protected Secrets

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-04T20:12:00.546Z
- Modified: 2026-10-26T19:10:00.163Z
- Also known as: GHSA-q4w7-56hr-83rm, GO-2026-5565
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Nginx UI is a web user interface for the Nginx web server. Prior to version 2.3.8, 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. This issue has been patched in version 2.3.8.

(As written by CVE List.)

## Affected

- 0xJacky nginx-ui: < 2.3.8
- github.com/0xJacky/nginx-ui (Go): before 2.3.8; all versions
- nginxui nginx_ui: before 2.3.8

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/0xJacky/nginx-ui/security/advisories/GHSA-q4w7-56hr-83rm> (exploit, advisory, vendor-advisory, web)
- <https://github.com/0xJacky/nginx-ui/releases/tag/v2.3.8> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42223> (advisory)
- <https://github.com/0xJacky/nginx-ui> (package)

## Sources

- CVE List: [CVE-2026-42223](https://www.cve.org/CVERecord?id=CVE-2026-42223), CVE Terms of Use, modified 2026-05-05
- GitHub Advisory Database: [GHSA-q4w7-56hr-83rm](https://github.com/advisories/GHSA-q4w7-56hr-83rm), CC-BY-4.0, modified 2026-06-25
- Go Vulnerability Database: [GO-2026-5565](https://pkg.go.dev/vuln/GO-2026-5565), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-42223](https://nvd.nist.gov/vuln/detail/CVE-2026-42223), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-42223 · Whole record: https://cve.day/CVE-2026-42223.json · Rebuilt by cve.day 2026-11-25T22:59:20.564Z
