All vulnerabilities

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.

From langflow-ai/langflow's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LangflowServers and applications · cpe:a:langflow:langflow
  • Every version before 1.9.0
LangflowServers and applications · github:langflow-ai/langflow
  • Every version before 1.9.0

About Langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

From its GitHub repository.
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

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