Live Exposure Defense: From CVE to Confirmed Exposure in 12 Hours – See more

New CVE Detected

CVE-2026-82639 – OpenAI API Key Disclosure – ChatGPT Next Web (NextChat) versions 2.15.8–2.16.1

Be the first to know when new zero-days emerge:

Summary

CVE-2026-82639 is an improper input validation flaw in ChatGPT Next Web (NextChat), a self-hosted web UI for ChatGPT and other LLM providers. The proxy request handler validates the x-base-url header using a substring check instead of proper hostname parsing, allowing an unauthenticated remote attacker to trick the server into forwarding its configured OpenAI API key to an attacker-controlled host. The issue is rated high severity and affects any self-hosted NextChat deployment with a server-side OPENAI_API_KEY configured.

Technical details

  • Root cause: app/api/proxy.ts decides whether to attach the server’s OpenAI Authorization header by checking baseUrl?.includes("api.openai.com") — a plain substring test rather than a parsed-hostname comparison.
  • Trigger condition: An attacker sends a request with an x-base-url header containing api.openai.com anywhere in the string (e.g., as a query parameter or path segment) while pointing the actual host elsewhere, such as http://attacker.com?q=api.openai.com.
  • Attack vector: Network, unauthenticated, single HTTP request; access-code protection on the NextChat instance does not mitigate it because the proxy endpoint performs no authentication of its own.
  • Impact: Disclosure of the deployment’s server-side OpenAI API key to an attacker-controlled endpoint, enabling unauthorized use of the victim’s OpenAI account/billing and potential further abuse of that key.

Affected software

  • ChatGPTNextWeb/NextChat versions 2.15.8 through 2.16.1 (inclusive), with a server-configured OPENAI_API_KEY.

Severity

  • CVSS v3.1: 7.5 (High) — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Also scored under CVSS v4.0 as 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

Mitigation and recommended actions

  • Immediate: No official patched release has been confirmed at time of writing; a fix (replacing the substring check with proper URL hostname parsing) is proposed in pull request #6884 against the project repository. Apply that fix or an equivalent patch, and track the upstream repository for a tagged release beyond 2.16.1.
  • If no patch is available: Rotate the server’s OPENAI_API_KEY immediately and monitor OpenAI account usage for unauthorized activity; restrict or firewall outbound traffic from the NextChat host so the proxy endpoint cannot reach arbitrary external destinations; disable or remove the /api/proxy route if it is not required; place the deployment behind an authenticating reverse proxy or VPN so the endpoint is not directly internet-exposed.

How IONIX identifies potentially affected assets

IONIX matches the following signals against data already collected when it crawled the asset; identifying the technology sends no request beyond that crawl.

  • Raw response body: Your personal ChatGPT Chat Bot.
  • Favicon fingerprint: -489732743, 1296353639

References

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

How IONIX’s External Exposure Management Platform Detects and Validates
Zero-Days to Shrink MTTR

1

Map your entire attack surface (continously)

IONIX uses multi-factor discovery methods, including DNS analysis, certificate mapping, metadata inspection, and more, to automatically map every internet-facing asset across your environment. This includes cloud instances, third-party platforms, shadow IT, and even forgotten infrastructure that traditional tools miss.

2

Monitor for new CVEs

Dozens of threat intel feeds using agentic technology are continuously analyzed to detect the appearance of proof-of-concept code, exploit kits, and indicators of active targeting. IONIX goes further by applying AI to proactively evaluate whether emerging vulnerabilities are likely to be exploited, even before PoCs go public.

3

Identify Potential External Exposures

Not all CVEs matter. IONIX filters vulnerabilities by asking attacker-centric questions: Can it be reached from the internet? Does it require authentication? Is it being exploited in the wild? This dramatically reduces noise and focuses teams on threats that can actually be weaponized.

4

Create Safe, Scalable Exploit Validations

IONIX transforms real-world PoCs into safe, non-intrusive test payloads that can be run in production environments without disruption. These simulations are precisely targeted to the systems that are vulnerable, ensuring rapid validation without unnecessary load.

5

Execute Exploit Validations

By combining context about software stack, versioning, exposure status, and reachability, IONIX ensures that only the right payloads are executed against the right assets, maximizing efficiency and minimizing risk.

6

Drive Fast and Actionable Remediation

Results are routed through integrations with ticketing, SOAR, and SIEM tools. Issues are written in plain language, bundled into remediation clusters, and prioritized based on asset criticality, exploitability, and blast radius. This shortens mean time to remediation (MTTR) and empowers teams to act with confidence.

Are you exposed?

Get a free report of your organization’s exposure to this CVE and threat

Subscribe to Threat Center RSS

Copy/paste the link below into your preferred RSS reader or follow these instructions to subscribe to Slack alerts.

Get Real-Time CVE Alerts to Your Email

Be the first to know when new zero-days emerge