CVE-2025-6853 chatchat-space Langchain-Chatchat Backend upload_temp_docs path traversal
Remote attackers can exploit a path traversal vulnerability in the upload_temp_docs function to read or modify arbitrary files on 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-6853?
CVE-2025-6853 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 critical has been found in chatchat-space Langchain-Chatchat up to 0.3.1. This affects the function upload_temp_docs of the file /knowledge_base/upload_temp_docs of the component Backend. The manipulation of the argument flag leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
Weakness: CWE-22
Which versions are affected by CVE-2025-6853?
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.3 | None |
langchain-chatchat PyPI | All versions to 0.3.1.3 | None |
langchain-chatchat PyPI | All versions to 0.3.1.3 | None |
Products include Chatchat-Space Langchain-Chatchat.
How do I fix CVE-2025-6853?
No fix has been published for CVE-2025-6853 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-6853 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-6853 exists.
Other vulnerabilities in chatchat-space Langchain-Chatchat
Sources
Also known as GHSA-qmgv-j263-qr33, PYSEC-2026-1513.