CVE-2025-6855: Langchain-Chatchat Path Traversal Vulnerability

langchain-chatchat Updated 07 Jul 2026

Summary

07/07/2026
No i
Low
5.5

CVE-2025-6855: Langchain-Chatchat vulnerable to path traversal. Affects langchain-chatchat versions < 0.3.1. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Langchain-Chatchat is an open-source package designed for chat applications, enabling developers to integrate chat functionalities into their projects seamlessly. It offers features such as message handling, user interaction, and file processing. However, versions up to 0.3.1 are vulnerable to a critical path traversal issue, which can be exploited to access unauthorized files on the server.

Vulnerability Detail

A critical vulnerability has been identified in Langchain-Chatchat versions up to 0.3.1, specifically affecting the file processing endpoint at /v1/file. The vulnerability arises from improper handling of input parameters, allowing attackers to manipulate the argument flag and perform path traversal attacks. This could lead to unauthorized access to sensitive files on the server, potentially compromising the integrity and confidentiality of the application.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can implement input validation to sanitize the argument flag used in the file processing function. This can help mitigate the risk of path traversal until an official patch is applied. For example, you can restrict the input to a predefined set of allowed paths.

Conclusion

The Langchain-Chatchat package is vulnerable to a critical path traversal issue in versions up to 0.3.1. It is essential to update to the latest version to mitigate this risk. Implementing input validation can serve as a temporary workaround while awaiting the official patch. Regular monitoring of dependencies is crucial for maintaining application security.

See every vulnerability recorded for langchain-chatchat →

Share this vulnerability

FAQ

Path traversal is a security vulnerability that allows an attacker to access files and directories that are stored outside the intended directory.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploiting this vulnerability could allow attackers to access sensitive files, leading to data breaches and compromising the security of the application.

Yes, the CVSS score for this vulnerability is 5.5, indicating a moderate level of risk.

You can use tools like Vulert, which monitors your Pipfile.lock for open-source vulnerabilities in real-time and alerts you accordingly.

Related vulnerabilities

Recent vulnerabilities recorded for langchain-chatchat.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback