CVE-2025-6854 chatchat-space Langchain-Chatchat files path traversal
Remote attackers can exploit a path traversal vulnerability in the file handling endpoint to read arbitrary files from the server.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-6854?
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.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2025-6854?
3 open source packages ship an affected version, including langchain-chatchat. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
langchain-chatchat PyPI | All versions to 0.3.1 | None |
langchain-chatchat PyPI | All versions to 0.3.1 | None |
langchain-chatchat PyPI | All versions to 0.3.1 | None |
Products include Chatchat-Space Langchain-Chatchat.
How do I fix CVE-2025-6854?
No fix has been published for CVE-2025-6854 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2025-6854 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6854 exists.
Other vulnerabilities in chatchat-space Langchain-Chatchat
Sources
Also known as GHSA-8v8h-4pjx-rg73, PYSEC-2026-1511.