PatchSiren cyber security CVE debrief
CVE-2026-82639 ChatGPTNextWeb CVE debrief
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-08-30T14:17:03.750Z and has not been modified since then. The vulnerability affects NextChat versions from 2.15.8 through 2.16.1, allowing attackers to obtain the server's OpenAI API key due to improper URL validation in the proxy endpoint. The x-base-url header is validated using substring matching instead of hostname parsing, enabling any URL containing 'api.openai.com' to pass validation and receive the server's credentials in the Authorization header. This flaw has a CVSS score of 8.7 and is classified as HIGH severity. Administrators and security teams should be aware of this vulnerability and take immediate action to mitigate potential risks.
- Vendor
- ChatGPTNextWeb
- Product
- NextChat
- CVSS
- HIGH 8.7
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-08-30
- Original CVE updated
- 2026-08-30
- Advisory published
- 2026-08-30
- Advisory updated
- 2026-08-30
Who should care
Administrators and security teams responsible for NextChat installations, particularly those using versions between 2.15.8 and 2.16.1, should be aware of this vulnerability and take immediate action to mitigate potential risks. Additionally, organizations using OpenAI API keys in conjunction with NextChat should prioritize securing these keys and monitoring for any suspicious activity.
Technical summary
The NextChat application, versions 2.15.8 through 2.16.1, contains a vulnerability in its proxy endpoint due to improper URL validation. Specifically, the x-base-url header is validated using substring matching instead of proper hostname parsing. This flaw allows an attacker to craft a URL containing 'api.openai.com' and potentially obtain the server's OpenAI API key. The vulnerability is rated with a CVSS score of 8.7 and classified as HIGH severity.
Defensive priority
Organizations using NextChat versions from 2.15.8 through 2.16.1 should prioritize updating to a fixed version to prevent potential OpenAI API key disclosure.
Recommended defensive actions
- Update NextChat to a version outside of the vulnerable range (2.15.8 through 2.16.1) as soon as possible.
- Review and restrict access to the proxy endpoint to minimize potential exposure.
- Monitor for suspicious activity related to OpenAI API key usage.
- Consider implementing additional security measures, such as API key rotation and strict access controls.
- Perform a thorough review of the affected systems to identify potential exposure.
- Implement compensating controls for exposed systems while remediation is scheduled and verified.
- Track exceptions, retest remediated assets, and close the item only after evidence is documented.
Evidence notes
The CVE description indicates that NextChat versions from 2.15.8 through 2.16.1 contain an improper URL validation vulnerability in the proxy endpoint. 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. However, detailed information about affected configurations and potential attack vectors is limited.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-82639 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-82639
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-82639 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-82639
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Source reference
Unverified legacy reference
URL: https://github.com/ChatGPTNextWeb/NextChat
-
Source reference
Unverified legacy reference
URL: https://github.com/ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts
-
Source reference
Unverified legacy reference
URL: https://github.com/ChatGPTNextWeb/NextChat/issues/6814
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/nextchat-2.15.8-through-2.16.1-openai-api-key-disclosure
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.