PyPA Advisory Database
PYSEC-2026-1513
Langchain-Chatchat has a Path Traversal vulnerability
Details
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.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | langchain-chatchat | All versions up to and including 0.3.1.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-6853
- https://github.com/chatchat-space/Langchain-Chatchat/issues/5352
- https://github.com/chatchat-space/Langchain-Chatchat
- https://vuldb.com/?ctiid.314325
- https://vuldb.com/?id.314325
- https://vuldb.com/?submit.601155
- https://pypi.org/project/langchain-chatchat
- https://github.com/advisories/GHSA-qmgv-j263-qr33