Servers and applications
CVE-2026-42048
Path Traversal in Knowledge Bases API via Bulk Delete Endpoint
- Severity
- Critical 9.6
- Published
- 27 Apr 2026
- Last changed
- 11 Nov 2026
- Added to UpHeron
- 1 Nov 2026
- Fixed in
- 1.9.0
- Exploit chance
- 4.2% in the next 30 daysHigher than 91% of CVEs. EPSS by FIRST, 19 Nov 2026
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H- Also known as
- GHSA-9whx-c884-c68q
- Sources
- NVD, Project advisories (GitHub)
Description
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.
The vulnerability exists in the delete_knowledge_bases_bulk function within src/backend/base/langflow/api/v1/knowledge_bases.py.
This function constructs file paths directly from the user-supplied kb_names parameter. While other knowledge base endpoints safely route through standard path resolution (e.g., _resolve_kb_path()), the bulk delete handler bypasses this entirely. It builds the path manually and passes it directly to shutil.rmtree() without validating if the resulting path resolves outside the intended user directory.
Affected software
| Software | Affected versions |
|---|---|
LangflowServers and applications · cpe:a:langflow:langflow |
|
LangflowServers and applications · github:langflow-ai/langflow |
|
About Langflow
Langflow is a powerful tool for building and deploying AI-powered agents and workflows.
- Weekly downloads (PyPI)
- 8,374PyPI Stats, 15 Nov 2026
- Docker Hub pulls
- 4,731,179Docker Hub, 15 Nov 2026
- GitHub stars
- 156,656GitHub, 15 Nov 2026
- Forks
- 10,412GitHub, 15 Nov 2026
- Latest release
- v1.13.2GitHub, 15 Nov 2026
- Released
- 10 Nov 2026GitHub
- License
- MITGitHub
- First published on GitHub
- 8 Feb 2023GitHub
Source code Website Docker image Package
Vulnerabilities in Langflow
- In our list
- 228
- Published in the last 12 months
- 221
- Critical, last 12 months
- 60
- High, last 12 months
- 101
- Known exploited
- 6
- CVE-2026-97677Langflow OSS is affected by multiple vulnerabilitiesHigh 8.1 8 Nov 2026
- GHSA-qvqp-mxh4-f27wLangflow URL component: unbounded response size allows denial of service via memory exhaustionMedium 6.5 5 Nov 2026
- CVE-2026-18894Langflow OSS is affected by multiple vulnerabilitiesCritical 9.8 29 Oct 2026
- CVE-2026-77817Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
- CVE-2026-77819Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
- CVE-2026-90991Langflow OSS is affected by multiple vulnerabilitiesMedium 6.5 29 Oct 2026
References
- NVD https://nvd.nist.gov/vuln/detail/CVE-2026-42048
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-42048
- GitHub Advisory Database https://github.com/advisories/GHSA-9whx-c884-c68q
- github.com https://github.com/langflow-ai/langflow/security/advisories/GHSA-9whx-c884-c68q