{"id":"CVE-2026-82639","state":"PUBLISHED","title":"NextChat 2.15.8 through 2.16.1 OpenAI API Key Disclosure","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.","publishedAt":"2026-08-30T13:23:39.106Z","updatedAt":"2026-09-24T14:20:34.749Z","severity":{"score":8.7,"label":"High","version":"4.0","vector":"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","source":"VulnCheck"},"assigner":"VulnCheck","products":["ChatGPTNextWeb NextChat"],"affected":[{"vendor":"ChatGPTNextWeb","product":"NextChat","packageURL":"pkg:github/ChatGPTNextWeb/NextChat","defaultStatus":"unaffected","versions":[{"version":"2.15.8","status":"affected","lessThanOrEqual":"2.16.1","versionType":"semver"}]}],"references":["https://github.com/ChatGPTNextWeb/NextChat/issues/6814","https://github.com/ChatGPTNextWeb/NextChat","https://github.com/ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts","https://www.vulncheck.com/advisories/nextchat-2.15.8-through-2.16.1-openai-api-key-disclosure"],"weaknesses":["CWE-20"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/82xxx/CVE-2026-82639.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-82639","state":"PUBLISHED","datePublished":"2026-08-30T13:23:39.106Z","dateUpdated":"2026-09-24T14:20:34.749Z","assignerShortName":"VulnCheck","assignerOrgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateReserved":"2026-08-30T13:06:02.366Z"},"containers":{"cna":{"title":"NextChat 2.15.8 through 2.16.1 OpenAI API Key Disclosure","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"ChatGPTNextWeb","product":"NextChat","packageURL":"pkg:github/ChatGPTNextWeb/NextChat","defaultStatus":"unaffected","versions":[{"version":"2.15.8","status":"affected","lessThanOrEqual":"2.16.1","versionType":"semver"}]}],"references":[{"url":"https://github.com/ChatGPTNextWeb/NextChat/issues/6814","tags":["issue-tracking"],"name":"GitHub Issue #6814"},{"url":"https://github.com/ChatGPTNextWeb/NextChat","tags":["product"]},{"url":"https://github.com/ChatGPTNextWeb/NextChat/blob/v2.16.1/app/api/proxy.ts","tags":["technical-description"]},{"url":"https://www.vulncheck.com/advisories/nextchat-2.15.8-through-2.16.1-openai-api-key-disclosure","name":"VulnCheck Advisory: NextChat 2.15.8 through 2.16.1 OpenAI API Key Disclosure","tags":["third-party-advisory"]}],"metrics":[{"format":"CVSS","cvssV4_0":{"version":"4.0","vectorString":"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","attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH"}},{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-20","lang":"en","description":"Improper Input Validation","type":"CWE"}]}],"providerMetadata":{"shortName":"VulnCheck","orgId":"83251b91-4cc7-4094-a5c7-464a1b83ea10","dateUpdated":"2026-09-24T14:20:34.749Z"},"datePublic":"2026-07-05T00:00:00.000Z","cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:nextchat:nextchat:*:*:*:*:*:*:*:*","versionStartIncluding":"2.15.8","versionEndIncluding":"2.16.1"}]}]}],"credits":[{"lang":"en","value":"George Chen","type":"finder"}],"x_generator":{"engine":"vulncheck-endgame"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/ChatGPTNextWeb/NextChat/issues/6814","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-31T16:51:12.882744Z","id":"CVE-2026-82639","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-31T16:51:17.973Z"}}]}}}