{"answers":{"affected":"3 open source packages ship an affected version, including langchain-chatchat. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6854 exists.","fix":"No fix has been published for CVE-2025-6854 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-6854 is a medium-severity path traversal vulnerability in chatchat-space Langchain-Chatchat, published on 29 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-6854 and fix it if it is affected.\n\nWhat it is: CVE-2025-6854 is a medium-severity path traversal vulnerability in chatchat-space Langchain-Chatchat, published on 29 Jun 2025. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6854 exists.\n\nAffected packages and fixed versions:\n- langchain-chatchat (PyPI): affected all versions up to 0.3.1; no fix listed\n- langchain-chatchat (PyPI): affected all versions up to 0.3.1; no fix listed\n- langchain-chatchat (PyPI): affected all versions up to 0.3.1; 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-2025-6854/ (Markdown: https://insights.sbomify.com/CVE-2025-6854/index.md)","id":"CVE-2025-6854","markdown":"https://insights.sbomify.com/CVE-2025-6854/index.md","name":"CVE-2025-6854","record":{"aliases":["GHSA-8v8h-4pjx-rg73","PYSEC-2026-1511"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Langchain-Chatchat","requires_auth":"low_privilege","summary":"Remote attackers can exploit a path traversal vulnerability in the file handling endpoint to read arbitrary files from the server.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"langchain-chatchat","vendor":"chatchat-space"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:P","version":"4.0"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A vulnerability classified as problematic was found in chatchat-space Langchain-Chatchat up to 0.3.1. This vulnerability affects unknown code of the file /v1/files?purpose=assistants. The manipulation leads to path traversal. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":false,"headline":"chatchat-space Langchain-Chatchat files path traversal","id":"CVE-2025-6854","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"path_traversal","year":"2025"},"n_packages":3,"n_references":4,"next":{"headline":"chatchat-space Langchain-Chatchat file path traversal","id":"CVE-2025-6855"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":null,"source":"GHSA-8v8h-4pjx-rg73"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"GHSA-8v8h-4pjx-rg73"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"PYSEC-2026-1511"}],"prev":{"headline":"chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal","id":"CVE-2025-6853"},"products":["Langchain-Chatchat"],"published":"2025-06-29","related":[{"cvss_score":5.3,"headline":"chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal","id":"CVE-2025-6853","kev_date_added":null,"published":"2025-06-29"},{"cvss_score":5.1,"headline":"chatchat-space Langchain-Chatchat file path traversal","id":"CVE-2025-6855","kev_date_added":null,"published":"2025-06-29"}],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-06-30","vendors":["chatchat-space"]},"summary":"Remote attackers can exploit a path traversal vulnerability in the file handling endpoint to read arbitrary files from the server.","url":"https://insights.sbomify.com/CVE-2025-6854/"}