CVE-2026-51883
Received Received - Intake

Path Traversal in Langchain-Chatchat Knowledge Base

Vulnerability report for CVE-2026-51883, 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 creation and document upload interfaces in Langchain-Chatchat 0.3.0;0.3.1 is vulnerable to path traversal. An attacker can inject path traversal sequences (such as `..\`) into the `knowledge_base_name` parameter to write knowledge base content to arbitrary locations outside the configured knowledge base root 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 2 associated CPEs
Vendor Product Version / Range
langchain langchain-chatgpt 0.3.0
langchain langchain-chatgpt 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

The vulnerability in Langchain-Chatchat versions 0.3.0 and 0.3.1 allows an attacker to use path traversal sequences like ..\ in the knowledge_base_name parameter. This lets them write knowledge base content to any location outside the intended root directory.

Detection Guidance

Check Langchain-Chatchat logs for unusual file write operations or path traversal attempts in the knowledge_base_name parameter. Monitor for files created outside the expected knowledge base directory structure.

Impact Analysis

An attacker could overwrite critical system files, inject malicious content, or disrupt the application by writing files to unauthorized locations. This may lead to data corruption, unauthorized access, or denial of service.

Compliance Impact

This vulnerability could potentially violate compliance with standards like GDPR or HIPAA by allowing unauthorized access or modification of sensitive data stored in knowledge bases. Unrestricted path traversal may lead to data leaks or unauthorized data manipulation, which are critical violations under these regulations.

Mitigation Strategies

Upgrade Langchain-Chatchat to a patched version if available. Restrict file write permissions to the knowledge base directory. Validate and sanitize all inputs for the knowledge_base_name parameter to prevent path traversal sequences.

Chat Assistant

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

EPSS Chart