CVE-2023-49785
CRITICAL 9.8CVSS 3.1NextChat has full-read SSRF and XSS vulnerability in /api/cors endpoint
NextChat, also known as ChatGPT-Next-Web, is a cross-platform chat user interface for use with ChatGPT. Versions 2.11.2 and prior are vulnerable to server-side request forgery and cross-site scripting. This vulnerability enables read access to internal HTTP endpoints but also write access using HTTP POST, PUT, and other methods. Attackers can also use this vulnerability to mask their source IP by forwarding malicious traffic intended for other Internet targets through these open proxies. As of time of publication, no patch is available, but other mitigation strategies are available. Users may avoid exposing the application to the public internet or, if exposing the application to the internet, ensure it is an isolated network with no access to any other internal resources.
- Published
- 12 Mar 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79CWE-918
- Also known as
- GHSA-qf3q-9f3h-cjp9
- Sources
- NVDJSONOSV GHSA-qf3q-9f3h-cjp9JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nextchat | nextchatcpe:2.3:a:nextchat:nextchat:*:*:*:*:*:*:*:* |
<= 2.11.2 | |
| OSV | npm | nextchat | <= 2.11.2 |
References
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web · Product, PACKAGE
- https://www.horizon3.ai/attack-research/attack-blogs/nextchat-an-ai-chatbot-that-lets-you-talk-to-anyone-you-want-to/ · Exploit, WEB
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/4283 · Exploit, Issue Tracking
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/4285 · Exploit, Issue Tracking, Patch
- https://www.vicarius.io/vsociety/posts/hacking-ai-chatbots-for-fun-and-learning-analyzing-an-unauthenticated-ssrf-and-reflected-xss-in-chatgpt-next-web-cve-2023-49785 · Exploit
- https://nvd.nist.gov/vuln/detail/CVE-2023-49785 · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 12 Mar 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Aug 2024)