CVE-2026-42867 Details
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.
A path traversal vulnerability has been identified in Langflow versions prior to 1.9.0, specifically within the Knowledge Bases API endpoint for creating new knowledge bases. This vulnerability arises because the application directly uses user-provided knowledge base names to generate file paths, lacking proper sanitization or containment checks. An authenticated attacker can exploit this issue to create directories and write files anywhere on the server's filesystem. The vulnerability exists in the 'create_knowledge_base' function, where the 'name' field is used to construct file paths that are then manipulated by the application without adequate validation.
Users can upgrade to Langflow version 1.9.0 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/langflow-ai/langflow/security/advisories/GHSA-79ph-745m-6wxq | CISA-ADP | ExploitVendor Advisory |
| https://github.com/langflow-ai/langflow/pull/12337 | [email protected] | PatchIssue Tracking |
| https://github.com/langflow-ai/langflow/security/advisories/GHSA-79ph-745m-6wxq | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| langflow langflow | < 1.9.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 26, 2026 | Initial Analysis | [email protected] |
| Jun 23, 2026 | CVE Modified | CISA-ADP |
| Jun 23, 2026 | New CVE Received | [email protected] |