Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. nextchat
  4. ›
  5. CVE-2023-49785

CVE-2023-49785: NextChat has full-read SSRF and XSS vulnerability in /api/cors endpoint

August 5, 2024

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.

References

  • github.com/ChatGPTNextWeb/ChatGPT-Next-Web
  • github.com/advisories/GHSA-qf3q-9f3h-cjp9
  • nvd.nist.gov/vuln/detail/CVE-2023-49785
  • www.horizon3.ai/attack-research/attack-blogs/nextchat-an-ai-chatbot-that-lets-you-talk-to-anyone-you-want-to

Code Behaviors & Features

Detect and mitigate CVE-2023-49785 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.11.2

Solution

Unfortunately, there is no solution available yet.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/nextchat/CVE-2023-49785.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:38 +0000.