Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify internet-exposed NextChat instance
-
DeliveryCraft request targeting internal URL via proxy route
-
ExploitSubmit unauthenticated HTTP request to /api/[provider]/[...path]
-
ExecutionproxyHandler forwards request to internal destination
-
PersistRetrieve internal service or metadata response
-
ImpactExtract credentials or sensitive internal data
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 | The NextChat application must be deployed and accessible over the network, which is the default configuration for self-hosted instances. No authentication is required (CVSS PR:N) and no victim user interaction is needed (UI:N). The vulnerable proxyHandler function is part of the standard Next.js API route at app/api/[provider]/[...path]/route.ts and is active in any standard deployment of versions up to 2.16.1. Exploitation is constrained by the SSVC 'not automatable' determination - effective attacks require identifying internal service addresses or cloud metadata endpoints relevant to the target environment, meaning opportunistic mass scanning is less impactful than targeted attacks. Impact is limited to partial access (VC:L/VI:L/VA:L); direct code execution or full system compromise is not achievable through this vector alone. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N) represents the most permissive attack surface - unauthenticated, network-reachable, no complexity or prerequisites - consistent with a default self-hosted deployment. Impact is bounded to partial across VC:L/VI:L/VA:L with no subsequent-system impact (SC:N/SI:N/SA:N), yielding a score of 5.5 rather than a critical rating. The EPSS score of 0.04% (14th percentile) is low despite the confirmed public PoC, aligning with the SSVC determination of 'not automatable' - mass exploitation scanning is unlikely given the need for target-specific payload crafting. The vulnerability is NOT in the CISA KEV catalog, confirming no verified widespread active exploitation at time of analysis. The primary real-world risk is targeted SSRF against self-hosted instances where internal network services are accessible from the application server, particularly cloud environments with metadata API endpoints. The absence of a vendor patch materially increases exposure duration and elevates priority for compensating controls. |
| Exploit ScenarioDerived | An unauthenticated remote attacker sends a crafted HTTP GET or POST request to the NextChat proxy API route targeting /api/[provider]/[...path] with a URL parameter pointing to an internal resource such as the AWS EC2 instance metadata endpoint (http://169.254.169.254/latest/meta-data/iam/security-credentials/). The proxyHandler function forwards the request without validating the destination, and the server returns the internal response - potentially including cloud IAM credentials - to the attacker. A public proof-of-concept demonstrating this technique is available at https://gist.github.com/YLChen-007/da6b00024f5b7e1d4fa0658c19b77fbf. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Server-side request forgery in ChatGPTNextWeb NextChat 2.16.0-2.16.1 allows unauthenticated remote attackers to manipulate the proxyHandler function in app/api/[provider]/[...path]/route.ts to coerce the server into issuing arbitrary HTTP requests to attacker-controlled internal or external destinations. A public proof-of-concept exploit is confirmed available, and the vendor has not yet responded to responsible disclosure filed as GitHub issue #6742, leaving no patch available. Despite a low EPSS score of 0.04%, the zero-authentication requirement combined with public exploit code warrants prompt compensating controls for any internet-exposed deployment.
RemediationAI
No vendor-released patch has been identified at time of analysis - the project maintainers have not responded to the GitHub issue disclosure at https://github.com/ChatGPTNextWeb/NextChat/issues/6742. As an immediate compensating control, deploy egress firewall rules on the NextChat application server to allowlist only required AI provider API endpoints (e.g., api.openai.com, api.anthropic.com) and explicitly block outbound requests to RFC 1918 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8), and cloud metadata endpoints (169.254.169.254); note this may require maintenance as provider IPs change. If the application can be placed behind an authentication proxy (e.g., OAuth2 middleware or Cloudflare Access), doing so converts PR:N to PR:L and meaningfully raises the exploitation bar, though this may conflict with intended public-access deployments. Monitor VulDB (https://vuldb.com/vuln/359779) and the upstream GitHub repository for a patched release.
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 an open-source Next.js web application that proxies user requests to multiple AI providers (OpenAI, Anthropic, etc.) via dynamic API routes. The vulnerability resides in the proxyHandler function within app/api/[provider]/[...path]/route.ts, where user-supplied URL components are forwarded to backend services without adequate origin validation or allowlist enforcement. This is a textbook CWE-918 (Server-Side Request Forgery) flaw - the application server becomes an unwitting HTTP relay, potentially exposing cloud metadata endpoints (e.g., 169.254.169.254), internal microservices, or RFC 1918-addressed resources inaccessible from the public internet. The affected CPE is cpe:2.3:a:chatgptnextweb:nextchat:*:*:*:*:*:*:*:*, covering all versions through 2.16.1 per NVD and EUVD-2026-25928.
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
Network-reachable with no auth (PR:N, AV:N); partial CIA impact on vulnerable system only, no scope change per 4.0 subsequent-system metrics.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
5DescriptionCVE.org
A security flaw has been discovered in ChatGPTNextWeb NextChat up to 2.16.1. Affected by this issue is the function proxyHandler of the file app/api/[provider]/[...path]/route.ts. The manipulation results in server-side request forgery. The attack may be performed from remote. The exploit has been released to the public and may be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
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 (CWE-918) in ChatGPTNextWeb NextChat up to and including 2.16.1 lets an unauthenticated, rem
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-25928
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB