Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach exposed /api/proxy endpoint
-
ExploitSet malicious x-base-url header
-
ExecutionServer fetches attacker-chosen internal URL
-
ImpactRetrieve internal/metadata response
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Credential Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the NextChat /api/proxy endpoint (the Proxy Fallback Handler) be network-reachable by the attacker; the attacker fully controls the x-base-url request header, which the vulnerable code concatenates directly into the server-side fetch target without validating the hostname against internal/private/metadata ranges. No authentication, no special configuration, and no user interaction are needed (PR:N/UI:N/AC:L), so default deployments of versions up to 2.16.1 are exploitable. The practical impact is LIMITED by what the server's network position can reach - the severity of a successful SSRF rises sharply if the instance runs in a cloud environment with an accessible instance-metadata service or internal-only APIs, and is lower for an isolated host with no sensitive internal endpoints. |
| Impact | This is a genuine but medium-tier risk, not a drop-everything emergency. The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N) describes a remotely reachable, unauthenticated, low-complexity SSRF requiring no user interaction, which is the worst-case precondition profile; however the impact metrics are deliberately scoped low (VC:L/VI:L/VA:L, SC:N/SI:N/SA:N), yielding a 6.9 MEDIUM rather than a critical. The SSVC/temporal signal E:P (Proof-of-Concept) aligns with the reported publicly available exploit, so exploitation is plausible but there is no evidence of mass exploitation. No EPSS score and no CISA KEV entry were provided in the input, so exploitation probability cannot be quantified and active in-the-wild use is NOT confirmed - treat exploitation status as 'publicly available exploit code exists' only. A key caveat: classic SSRF that can reach cloud metadata endpoints (the patch explicitly blocks 169.254.169.254 and metadata.google.internal) often warrants a scope change / higher confidentiality impact than the VC:L the vendor assigned, so the real impact in a cloud-hosted deployment with reachable instance credentials could exceed the 6.9 rating - verify against your deployment topology. |
| Exploit ScenarioDerived | An attacker sends an HTTP request to a publicly exposed NextChat instance's /api/proxy endpoint with a crafted x-base-url header pointing at an internal address (e.g. http://169.254.169.254/ or an internal service), and the server-side proxyHandler blindly fetches that URL and returns the response. A public PoC exists (referenced in GitHub issue #6813 and related #6814), and because the CVSS vector is AV:N/AC:L/PR:N/UI:N the attack is remote, low-complexity, and needs no authentication or user interaction against a reachable instance. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Oct 05, 2026
Server-side request forgery (CWE-918) in ChatGPTNextWeb NextChat up to and including 2.16.1 lets an unauthenticated, remote attacker who can reach the /api/proxy endpoint (the Proxy Fallback Handler) redirect the server's outbound HTTP requests to arbitrary hosts by supplying a crafted x-base-url header. Because the hostname is concatenated into the server-side fetch target without any validation against private, loopback, link-local, or cloud-metadata ranges, a successful attack can reach internal-only services or instance-metadata endpoints, with impact bounded by what the host's network position can actually reach. Publicly available exploit code exists (referenced GitHub issue #6813), but there is no confirmation of active exploitation; the fix is an unmerged pull request (#6884) that awaits acceptance, so no released patched version is independently confirmed and the risk should be treated as a genuine but medium-tier issue rather than an emergency.
RemediationAI
No released patched version is independently confirmed: the only fix is the upstream pull request https://github.com/ChatGPTNextWeb/NextChat/pull/6884, which awaits acceptance, so treat this as "upstream fix available (PR/commit); released patched version not independently confirmed" and track that PR (and its related issue https://github.com/ChatGPTNextWeb/NextChat/issues/6813) for merge and release before upgrading. Until a tagged release containing the fix exists, apply the compensating controls that the PR itself implements: restrict the /api/proxy route so that it is not internet-reachable (place it behind authentication or an allowlisting reverse proxy), since that is the single most effective mitigation but breaks any legitimate client use of the proxy fallback; alternatively enforce an upstream allowlist at the reverse proxy so that outbound requests can only go to the intended upstream API hosts, rejecting x-base-url values pointing at loopback (127.0.0.0/8), RFC1918 ranges (10/8, 172.16/12, 192.168/16), link-local (169.254.0.0/16, including the 169.254.169.254 cloud metadata endpoint), CGNAT (100.64/10), IPv6 loopback/link-local/unique-local, and decimal- or dotted-trailing-dot-encoded IP forms - with the trade-off that legitimate custom or self-hosted upstream endpoints will also be blocked. Because the same code path previously leaked the server-side OPENAI_API_KEY via a naive substring match on api.openai.com, administrators should also rotate that key and confirm the running build uses strict hostname equality before key injection; network-level egress filtering from the NextChat host to internal subnets and metadata services provides an additional layer at the cost of restricting legitimate internal integrations.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
NextChat is a Next.js-based, self-hostable ChatGPT-style web client, and the vulnerable code lives in the App Router API route app/api/proxy.ts, whose proxyHandler acts as a generic proxy fallback that forwards requests to a user-supplied upstream base URL. The root-cause class is CWE-918 (Server-Side Request Forgery): the value of the x-base-url request header is read and concatenated directly into the server-side fetch URL without any hostname or scheme validation, so the attacker controls the destination of the server's outbound request. The submitted fix in PR #6884 introduces parseHttpUrl (restricting to http/https), normalizeHostname (lowercasing and stripping trailing dots), and isBlockedProxyTarget / isBlockedHostname logic that blocks localhost, *.localhost, *.internal, metadata.google.internal, 0.0.0.0, RFC1918 ranges (10/8, 172.16/12, 192.168/16), loopback (127/8), link-local (169.254/16), CGNAT (100.64/10), multicast and reserved (>=224), decimal/hex-encoded IPv4, and IPv6 loopback, link-local (fe80::), unique-local (fc00::/fd00::) and IPv4-mapped addresses. The same diff exposes a closely related second defect: the original code decided whether to inject the server's OPENAI_API_KEY via a naive substring test (baseUrl?.includes("api.openai.com")), which can leak the server key when api.openai.com appears merely as a substring or query fragment of an attacker-controlled URL; the patch replaces this with strict hostname equality (isOpenAIApiHost). Per the CPE string cpe:2.3:a:chatgptnextweb:nextchat:*:*:*:*:*:*:*:*, the affected product is the NextChat application itself across versions through 2.16.1, meaning typical Docker, Vercel, or Node self-hosted deployments are in scope.
Know when Nextchat gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Remote unauthenticated attacker-controlled header with no UI gives AV:N/AC:L/PR:N/UI:N; SSRF yields limited C/I/A (L) with S:U consistent with the vendor's SC:N, though cloud-metadata reach could justify higher.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A flaw has been found in ChatGPTNextWeb NextChat up to 2.16.1. This vulnerability affects the function proxyHandler of the file app/api/proxy.ts of the component Proxy Fallback Handler. This manipulation of the argument x-base-url causes server-side request forgery. It is possible to initiate the attack remotely. The exploit has been published and may be used. The pull request to fix this issue awaits acceptance.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.
Directory traversal vulnerability in NextChat thru 2.16.0 due to the WebDAV proxy failing to canonicalize or reject dot
Server-side request forgery in ChatGPTNextWeb NextChat 2.16.0-2.16.1 allows unauthenticated remote attackers to manipula
Credential exfiltration in NextChat 2.15.8-2.16.1 allows unauthenticated network attackers to steal the server's OpenAI
Client-side cross-site scripting in NextChat 2.16.1 lets an attacker who hosts a malicious OpenAPI plugin schema run arb
Server-side request forgery in ChatGPTNextWeb NextChat through version 2.16.1 allows remote unauthenticated attackers to
EUVD-2026-92263
GHSA-rhg8-4whm-xj7w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB