CVE-2023-49785 NextChat vulnerable to Server-Side Request Forgery and Cross-site Scripting

Critical 9.1 Published Updated

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.

Weakness: CWE-918, CWE-79

Which versions are affected by CVE-2023-49785?

2 open source packages ship an affected version, including nextchat. It affects 1 product.

PackageAffectedFixed in
nextchat npmAll versions to 2.11.2None
nextchat npmAll versions to 2.11.2None

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.

Sources

Also known as GHSA-qf3q-9f3h-cjp9.

Is CVE-2023-49785 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free