CVE-2026-42867
Awaiting Analysis Awaiting Analysis - Queue
Path Traversal in Langflow Knowledge Bases API

Publication date: 2026-06-23

Last updated on: 2026-06-23

Assigner: GitHub, Inc.

Description
Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.0, Langflow is vulnerable to Path Traversal in the Knowledge Bases API (POST /api/v1/knowledge_bases). This occurs because user-supplied knowledge base names are used directly to create file paths without proper sanitization or containment checks. An authenticated attacker can exploit this flaw to create directories and write files anywhere on the server's filesystem. This vulnerability is fixed in 1.9.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-23
Last Modified
2026-06-23
Generated
2026-06-23
AI Q&A
2026-06-23
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
langflow-ai langflow to 1.9.0 (exc)
langflow-ai langflow 1.9.0
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-22 The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability allows authenticated attackers to perform path traversal, enabling them to create directories and write files anywhere on the server's filesystem. This can lead to cross-user data compromise and arbitrary filesystem manipulation.

Such unauthorized access and potential data compromise could negatively impact compliance with data protection regulations like GDPR and HIPAA, which require strict controls on data confidentiality and integrity.

However, the provided information does not explicitly discuss compliance impacts or specific regulatory considerations.

Executive Summary

CVE-2026-42867 is a Path Traversal vulnerability in the Langflow application's Knowledge Bases API (POST /api/v1/knowledge_bases). The issue arises because user-supplied knowledge base names are used directly to create file paths without proper sanitization or containment checks.

An authenticated attacker can exploit this flaw to create directories and write files anywhere on the server's filesystem by using path traversal sequences like ../ or absolute paths.

The vulnerability was fixed in Langflow version 1.9.0 by introducing a helper function that validates the constructed path to ensure it remains within the user's allowed directory space, preventing directory creation outside the designated area.

Impact Analysis

This vulnerability allows an authenticated attacker to manipulate the filesystem on the server running Langflow by creating directories and writing files outside their authorized area.

  • Cross-user data compromise by accessing or overwriting other users' data.
  • Arbitrary filesystem manipulation, potentially leading to data corruption or unauthorized data injection.
  • Overwriting critical files such as embedding_metadata.json and schema.json, which could disrupt application functionality or cause data loss.

Overall, this can lead to integrity and availability impacts on the system.

Detection Guidance

This vulnerability can be detected by monitoring attempts to create knowledge bases with path traversal sequences in the POST /api/v1/knowledge_bases API requests. Look for directory names containing patterns like "../" or absolute paths such as "/tmp/" in the knowledge base name field.

Since the fix returns HTTP 403 Forbidden responses on path traversal attempts and logs security-relevant details, checking server logs for such 403 responses related to the knowledge bases API can help detect exploitation attempts.

Suggested commands to detect suspicious activity include:

  • Use grep or similar tools to search server logs for 403 responses on the knowledge bases API endpoint, e.g., `grep 'POST /api/v1/knowledge_bases' /var/log/langflow/access.log | grep 403`.
  • Monitor API request payloads for knowledge base names containing traversal sequences, e.g., `grep -E '\.\./|^/' /var/log/langflow/request_payloads.log`.
  • Use file system monitoring tools to detect unexpected directory creations outside the expected knowledge base directories.
Mitigation Strategies

The immediate mitigation step is to upgrade Langflow to version 1.9.0 or later, where the vulnerability is fixed by proper path validation and containment checks.

If upgrading immediately is not possible, restrict access to the Knowledge Bases API (POST /api/v1/knowledge_bases) to trusted users only, and monitor for suspicious path traversal attempts.

Additionally, review server logs for any signs of exploitation attempts and consider implementing network-level controls such as firewalls or API gateways to limit potentially malicious requests.

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