{"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-6855 exists.","fix":"No fix has been published for CVE-2025-6855 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-6855 is a medium-severity path traversal vulnerability in chatchat-space Langchain-Chatchat, published on 29 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-6855 and fix it if it is affected.\n\nWhat it is: CVE-2025-6855 is a medium-severity path traversal vulnerability in chatchat-space Langchain-Chatchat, published on 29 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6855 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-6855/ (Markdown: https://insights.sbomify.com/CVE-2025-6855/index.md)","id":"CVE-2025-6855","markdown":"https://insights.sbomify.com/CVE-2025-6855/index.md","name":"CVE-2025-6855","record":{"aliases":["GHSA-f823-phmg-x5fr","PYSEC-2026-1512"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Langchain-Chatchat","requires_auth":"low_privilege","summary":"Attackers can exploit a path traversal vulnerability in the file 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.1,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:A/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/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, which was classified as critical, has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This issue affects some unknown processing of the file /v1/file. The manipulation of the argument flag leads to path traversal. 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 file path traversal","id":"CVE-2025-6855","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":"HDF5 H5FL.c H5FL__reg_gc_list use after free","id":"CVE-2025-6856"},"packages":[{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":null,"source":"GHSA-f823-phmg-x5fr"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"GHSA-f823-phmg-x5fr"},{"ecosystem":"PyPI","fixed":[],"introduced":["0"],"last_affected":["0.3.1"],"package":"langchain-chatchat","purl":"pkg:pypi/langchain-chatchat","source":"PYSEC-2026-1512"}],"prev":{"headline":"chatchat-space Langchain-Chatchat files path traversal","id":"CVE-2025-6854"},"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.3,"headline":"chatchat-space Langchain-Chatchat files path traversal","id":"CVE-2025-6854","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":"Attackers can exploit a path traversal vulnerability in the file endpoint to read arbitrary files from the server.","url":"https://insights.sbomify.com/CVE-2025-6855/"}