CVE-2025-6854 chatchat-space Langchain-Chatchat files path traversal

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
langchain-chatchat PyPIAll versions to 0.3.1None
langchain-chatchat PyPIAll versions to 0.3.1None
langchain-chatchat PyPIAll versions to 0.3.1None

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.

Sources

Also known as GHSA-8v8h-4pjx-rg73, PYSEC-2026-1511.

Is CVE-2025-6854 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free