CVE-2026-42867: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langflow-ai langflow
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.
AI Analysis
Technical Summary
CVE-2026-42867 is a path traversal vulnerability (CWE-22) in langflow-ai's langflow product affecting versions before 1.9.0. The issue arises because user-supplied knowledge base names are directly used to construct file paths without adequate sanitization or containment checks. An authenticated attacker can exploit this to write files and create directories arbitrarily on the server hosting langflow. This can lead to integrity and availability impacts. The vulnerability is resolved in version 1.9.0.
Potential Impact
An authenticated attacker can exploit this vulnerability to write files and create directories anywhere on the server's filesystem, potentially leading to integrity and availability impacts. Confidentiality impact is not indicated. The CVSS 3.1 base score is 6.5 (medium severity) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, indicating network attack vector, low attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, but integrity and availability impacts.
Mitigation Recommendations
Upgrade langflow to version 1.9.0 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated. Since this is not a cloud service, remediation depends on applying the official fix.
CVE-2026-42867: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langflow-ai langflow
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 v3.1
Score 6.5medium
Affected software
pkg:github/langflow-ai/langflowRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42867 is a path traversal vulnerability (CWE-22) in langflow-ai's langflow product affecting versions before 1.9.0. The issue arises because user-supplied knowledge base names are directly used to construct file paths without adequate sanitization or containment checks. An authenticated attacker can exploit this to write files and create directories arbitrarily on the server hosting langflow. This can lead to integrity and availability impacts. The vulnerability is resolved in version 1.9.0.
Potential Impact
An authenticated attacker can exploit this vulnerability to write files and create directories anywhere on the server's filesystem, potentially leading to integrity and availability impacts. Confidentiality impact is not indicated. The CVSS 3.1 base score is 6.5 (medium severity) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L, indicating network attack vector, low attack complexity, no privileges required, no user interaction, unchanged scope, no confidentiality impact, but integrity and availability impacts.
Mitigation Recommendations
Upgrade langflow to version 1.9.0 or later, where this path traversal vulnerability is fixed. No other mitigation or temporary workaround is indicated. Since this is not a cloud service, remediation depends on applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-30T18:49:06.710Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a3ab6d8eed863c81e4f9947
Added to database: 06/23/2026, 16:39:52 UTC
Last enriched: 06/23/2026, 17:10:10 UTC
Last updated: 06/23/2026, 21:45:45 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.