# CVE-2026-82639: NextChat 2.15.8 through 2.16.1 OpenAI API Key Disclosure

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA: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.38%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-30T13:23:39.106Z
- Modified: 2026-09-24T14:20:34.749Z
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

NextChat versions from 2.15.8 through 2.16.1 contain an improper URL validation vulnerability in the proxy endpoint that allows attackers to obtain the server's OpenAI API key. The x-base-url header is validated using substring matching instead of hostname parsing, allowing any URL containing 'api.openai.com' to pass validation and receive the server's credentials in the Authorization header.

(As written by CVE List.)

## Affected

- ChatGPTNextWeb NextChat: from 2.15.8 up to 2.16.1

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/ChatGPTNextWeb/NextChat/issues/6814> (exploit, issue-tracking)
- <https://github.com/ChatGPTNextWeb/NextChat> (product)
- <https://github.com/ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts> (technical-description)
- <https://www.vulncheck.com/advisories/nextchat-2.15.8-through-2.16.1-openai-api-key-disclosure> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-82639](https://www.cve.org/CVERecord?id=CVE-2026-82639), CVE Terms of Use, modified 2026-09-24
- NVD: [CVE-2026-82639](https://nvd.nist.gov/vuln/detail/CVE-2026-82639), Public domain, modified 2026-09-10

---

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