Path traversal in Langflow - CVE-2026-42048

 

Path traversal in Langflow - CVE-2026-42048

Published: April 27, 2026


Vulnerability identifier: #VU128248
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-42048
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Langflow
Affected software:
Langflow

Detailed vulnerability description

The vulnerability allows a remote user to delete arbitrary directories on the server, leading to data loss and service disruption.

The vulnerability exists due to path traversal in the delete_knowledge_bases_bulk function when handling bulk delete requests to the Knowledge Bases API. A remote user can supply crafted knowledge base names containing traversal sequences to delete arbitrary directories on the server, leading to data loss and service disruption.

The issue affects the DELETE /api/v1/knowledge_bases endpoint and can impact directories outside the intended user directory, including another tenant's knowledge base space.


How to mitigate CVE-2026-42048

Install security update from vendor's website.

Sources