CVE-2023-49785 NextChat vulnerable to Server-Side Request Forgery and Cross-site Scripting
Attackers can exploit SSRF and XSS in NextChat to access internal endpoints and modify data, requiring network isolation as mitigation.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2023-49785?
CVE-2023-49785 is a critical server-side request forgery vulnerability in ChatGPTNextWeb NextChat, published on 11 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Which versions are affected by CVE-2023-49785?
2 open source packages ship an affected version, including nextchat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
nextchat npm | All versions to 2.11.2 | None |
nextchat npm | All versions to 2.11.2 | None |
Products include Nextchat Nextchat.
How do I fix CVE-2023-49785?
No fix has been published for CVE-2023-49785 yet. Limit exposure of the affected software until one is available.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2023-49785 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-49785 exists.
Public exploit code: 1 Nuclei template and 1 proofs of concept on GitHub.
Other vulnerabilities in ChatGPTNextWeb NextChat
Sources
Also known as GHSA-qf3q-9f3h-cjp9.