{"answers":{"affected":"2 open source packages ship an affected version, including nextchat. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-49785 exists.","fix":"No fix has been published for CVE-2023-49785 yet. Limit exposure of the affected software until one is available.","what":"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."},"fix_prompt":"Check this codebase for CVE-2023-49785 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-49785 exists.\n\nAffected packages and fixed versions:\n- nextchat (npm): affected all versions up to 2.11.2; no fix listed\n- nextchat (npm): affected all versions up to 2.11.2; no fix listed\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-49785/ (Markdown: https://insights.sbomify.com/CVE-2023-49785/index.md)","id":"CVE-2023-49785","markdown":"https://insights.sbomify.com/CVE-2023-49785/index.md","name":"CVE-2023-49785","record":{"aliases":["GHSA-qf3q-9f3h-cjp9"],"analysis":{"component_type":"web_application","fix_type":"workaround","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"NextChat web UI","requires_auth":"none","summary":"Attackers can exploit SSRF and XSS in NextChat to access internal endpoints and modify data, requiring network isolation as mitigation.","user_interaction":"not_required","vuln_class":"ssrf"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"nextchat","vendor":"nextchat"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-01-03","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":1,"refs":[{"date":"2026-01-03T04:31:52Z","kind":"github_poc","ref":"https://github.com/hyunnna/NextChat_SSRF_CVE-2023-49785","stars":0,"title":null},{"date":null,"kind":"nuclei","ref":"http/cves/2023/CVE-2023-49785.yaml","stars":null,"title":"ChatGPT-Next-Web - SSRF/XSS"}],"tier":"weaponised"},"has_fix":false,"headline":"NextChat vulnerable to Server-Side Request Forgery and Cross-site Scripting","id":"CVE-2023-49785","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"ssrf","year":"2023"},"n_packages":2,"n_references":2,"next":{"headline":"Asterisk susceptible to Denial of Service via DTLS Hello packets during call initiation","id":"CVE-2023-49786"},"packages":[{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.11.2"],"package":"nextchat","purl":null,"source":"GHSA-qf3q-9f3h-cjp9"},{"ecosystem":"npm","fixed":[],"introduced":["0"],"last_affected":["2.11.2"],"package":"nextchat","purl":"pkg:npm/nextchat","source":"GHSA-qf3q-9f3h-cjp9"}],"prev":{"headline":"No permission checks for editing/deleting records with CSV import form","id":"CVE-2023-49783"},"products":["NextChat"],"published":"2024-03-11","related":[{"cvss_score":7.5,"headline":"Path traversal in n/a","id":"CVE-2025-50735","kev_date_added":null,"published":"2025-11-03"},{"cvss_score":6.9,"headline":"ChatGPTNextWeb NextChat route.ts proxyHandler server-side request forgery","id":"CVE-2026-7177","kev_date_added":null,"published":"2026-04-27"},{"cvss_score":6.9,"headline":"ChatGPTNextWeb NextChat Artifacts Endpoint route.ts storeUrl server-side request forgery","id":"CVE-2026-7178","kev_date_added":null,"published":"2026-04-27"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-19","vendors":["ChatGPTNextWeb"]},"summary":"Attackers can exploit SSRF and XSS in NextChat to access internal endpoints and modify data, requiring network isolation as mitigation.","url":"https://insights.sbomify.com/CVE-2023-49785/"}