Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/ChatGPTNextWeb/NextChat
- https://github.com/ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts
- https://github.com/ChatGPTNextWeb/NextChat/issues/6814
- https://www.vulncheck.com/advisories/nextchat-2.15.8-through-2.16.1-openai-api-k
- https://github.com/ChatGPTNextWeb/NextChat/issues/6814
FAQ
What is CVE-2026-82639?
CVE-2026-82639 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 i...
How severe is CVE-2026-82639?
CVE-2026-82639 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-82639?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.