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

langchain-chatchat Updated 02 Oct 2025

Summary

29/06/2025
No i
Low
6.3

CVE-2025-6853: Langchain-Chatchat has a Path Traversal vulnerability. Affects langchain-chatchat versions < 0.3.1.3. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Langchain-Chatchat is an open-source package designed for building chat applications using the Langchain framework. It provides functionalities for managing chat interactions and integrating various backend services. However, it has been found to be vulnerable to a path traversal attack, which could allow unauthorized access to the file system.

Vulnerability Detail

A critical vulnerability has been identified in Langchain-Chatchat versions up to 0.3.1. The issue arises in the 'upload_temp_docs' function located in the '/knowledge_base/upload_temp_docs' file. The manipulation of the 'flag' argument can lead to path traversal, allowing attackers to access files outside the intended directory structure. This vulnerability can be exploited remotely, posing a significant risk to the integrity and confidentiality of the system.

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 restrict access to the affected function or validate the input parameters to prevent path traversal. For example, you can implement checks to ensure that the 'flag' argument does not contain any directory traversal sequences (e.g., '../').

Conclusion

The Langchain-Chatchat package has a critical path traversal vulnerability that can be exploited remotely. It is essential for users to update to the latest version to protect their applications from potential attacks. Utilizing tools like Vulert can further enhance security by monitoring for vulnerabilities.

See every vulnerability recorded for langchain-chatchat →

Share this vulnerability

FAQ

A path traversal vulnerability allows an attacker to access files and directories that are stored outside the intended directory structure, potentially leading to unauthorized data exposure.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which allows you to monitor and alert for open-source vulnerabilities without requiring any installation.

Exploitation of this vulnerability could lead to unauthorized access to sensitive files, data leakage, and potential system compromise.

Yes, a patch is available in version 0.3.1.4 and later of Langchain-Chatchat. It is recommended to update to this version to mitigate the risk.

Vulert is a monitoring tool that uses Pipfile.lock to track open-source vulnerabilities in your software. It provides real-time alerts and insights into potential security issues.

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