Vulnerability · Published Mar 11, 2024 · Assigned by GitHub_M
CVE-2023-49785NextChat vulnerable to Server-Side Request Forgery and Cross-site Scripting
Critical 9.1
In plain English
A critical-severity server-side request forgery in NextChat from ChatGPTNextWeb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 83.2% (higher than 99.7% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | nextchat | no fix listed | GHSA-qf3q-9f3h-cjp9 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| ChatGPTNextWeb | NextChat | 0 – through 2.11.2 |
Weakness: CWE-918, CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
References
- https://www.horizon3.ai/attack-research/attack-blogs/nextchat-an-ai-chatbot-that-lets-you-talk-to-anyone-you-want-to/
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web
- 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 technical-description
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/4285 patch
- https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/issues/4283 issue-tracking