CVE-2026-51884
Received Received - Intake

Path Traversal in Langchain Chatchat Document Upload

Vulnerability report for CVE-2026-51884, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-10-01

Last updated on: 2026-10-01

Assigner: MITRE

Description

The /knowledge_base/upload_temp_docs temporary document upload endpoint in Langchain Chatchat 0.3.1 is vulnerable to path traversal. By crafting malicious filenames, an attacker can write files to arbitrary locations on the server, bypassing the intended restrictions on the temporary directory.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-10-01
Last Modified
2026-10-01
Generated
2026-10-02
AI Q&A
2026-10-02
EPSS Evaluated
N/A
NVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
langchain chatchat 0.3.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is a path traversal issue in the /knowledge_base/upload_temp_docs endpoint of Langchain Chatchat version 0.3.1. It allows attackers to write files to arbitrary locations on the server by crafting malicious filenames, bypassing restrictions meant for the temporary directory.

Detection Guidance

To detect this vulnerability, inspect file uploads to the /knowledge_base/upload_temp_docs endpoint. Check for filenames containing path traversal sequences like ../ or absolute paths. Monitor server file system for unexpected file writes outside the intended temporary directory.

Impact Analysis

An attacker could exploit this to overwrite critical system files, inject malicious code, or gain unauthorized access to sensitive data stored on the server. This could lead to system compromise or data breaches.

Compliance Impact

This vulnerability could lead to unauthorized data access or modification, violating GDPR's data protection requirements or HIPAA's safeguards for protected health information. Compliance violations may result in legal penalties or reputational damage.

Mitigation Strategies

Immediately upgrade Langchain Chatchat to a patched version if available. If not, disable the /knowledge_base/upload_temp_docs endpoint or restrict file upload functionality. Monitor server file system for unauthorized file writes in temporary directories.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-51884. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart