CVE-2026-42048: 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 (DELETE /api/v1/knowledge_bases). This occurs because user-supplied knowledge base names are concatenated directly into file paths without proper sanitization or boundary validation. An authenticated attacker can exploit this flaw to delete arbitrary directories anywhere on the server's filesystem, leading to data loss and potential service disruption. This vulnerability is fixed in 1.9.0.
AI Analysis
Technical Summary
CVE-2026-42048 is a path traversal vulnerability (CWE-22) in langflow-ai's langflow product affecting versions before 1.9.0. The vulnerability arises because user-supplied knowledge base names are concatenated directly into file paths without proper sanitization or boundary checks in the DELETE /api/v1/knowledge_bases API. An authenticated attacker can exploit this to delete arbitrary directories anywhere on the server filesystem, impacting data integrity and availability. The CVSS v3.1 score is 9.6 (critical), reflecting network attack vector, low complexity, required privileges, no user interaction, scope change, no confidentiality impact, but high integrity and availability impact. The vulnerability is fixed in langflow version 1.9.0.
Potential Impact
Exploitation allows an authenticated attacker to delete arbitrary directories on the server hosting langflow, resulting in data loss and potential service disruption. The integrity and availability of the system are severely impacted, though confidentiality is not affected. This can cause significant operational impact depending on the data and services hosted.
Mitigation Recommendations
Upgrade langflow to version 1.9.0 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the upgrade from the vendor's official release notes or repository. Until upgraded, restrict access to the Knowledge Bases API to trusted authenticated users only to reduce risk.
CVE-2026-42048: 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 (DELETE /api/v1/knowledge_bases). This occurs because user-supplied knowledge base names are concatenated directly into file paths without proper sanitization or boundary validation. An authenticated attacker can exploit this flaw to delete arbitrary directories anywhere on the server's filesystem, leading to data loss and potential service disruption. This vulnerability is fixed in 1.9.0.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-42048 is a path traversal vulnerability (CWE-22) in langflow-ai's langflow product affecting versions before 1.9.0. The vulnerability arises because user-supplied knowledge base names are concatenated directly into file paths without proper sanitization or boundary checks in the DELETE /api/v1/knowledge_bases API. An authenticated attacker can exploit this to delete arbitrary directories anywhere on the server filesystem, impacting data integrity and availability. The CVSS v3.1 score is 9.6 (critical), reflecting network attack vector, low complexity, required privileges, no user interaction, scope change, no confidentiality impact, but high integrity and availability impact. The vulnerability is fixed in langflow version 1.9.0.
Potential Impact
Exploitation allows an authenticated attacker to delete arbitrary directories on the server hosting langflow, resulting in data loss and potential service disruption. The integrity and availability of the system are severely impacted, though confidentiality is not affected. This can cause significant operational impact depending on the data and services hosted.
Mitigation Recommendations
Upgrade langflow to version 1.9.0 or later, where this vulnerability is fixed. Since no official patch link or advisory is provided, users should verify the upgrade from the vendor's official release notes or repository. Until upgraded, restrict access to the Knowledge Bases API to trusted authenticated users only to reduce risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-23T16:05:01.709Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a036fcccbff5d86100cc526
Added to database: 5/12/2026, 6:22:04 PM
Last enriched: 5/12/2026, 6:37:03 PM
Last updated: 5/13/2026, 4:59:55 AM
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.
External Links
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.