Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-42048: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in langflow-ai langflow

0
Critical
VulnerabilityCVE-2026-42048cvecve-2026-42048cwe-22
Published: Tue May 12 2026 (05/12/2026, 17:35:27 UTC)
Source: CVE Database V5
Vendor/Project: langflow-ai
Product: 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

AILast updated: 05/12/2026, 18:37:03 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses