Skip to main content
CVE-2025-6854VulnerabilityPublished Updated

CVE-2025-6854: Langchain-Chatchat · Path Traversal

Affects Langchain-ChatchatSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 4.0 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
GitHubchatchat-space/Langchain-Chatchatpkg:github/chatchat-space/Langchain-ChatchatOther threatsAffected
  • =0.3.0
  • =0.3.1
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediate mitigation should include restricting external access to the /v1/files?purpose=assistants endpoint by implementing network-level controls such as firewalls or VPNs to limit access to trusted internal users only. 2. Employ web application firewalls (WAFs) with custom rules to detect and block path traversal patterns (e.g., ../ sequences) in HTTP requests targeting the vulnerable endpoint. 3. Conduct input validation and sanitization on all file path parameters to reject or canonicalize suspicious inputs before processing. 4. Monitor logs for unusual access patterns or attempts to exploit path traversal, enabling rapid detection and response. 5. If possible, isolate the Langchain-Chatchat service in a container or sandbox environment with minimal file system permissions to limit the impact of any successful traversal. 6. Engage with the vendor or open-source maintainers to obtain patches or updates addressing this vulnerability as soon as they become available. 7. Review and audit deployment configurations to ensure that sensitive files are not stored in locations accessible by the application. 8. Educate development and operations teams about secure coding and deployment practices to prevent similar vulnerabilities in future versions.

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.

References

Community reviews

Loading reviews…