Kritisch

Langflow Knowledge Bases API is Vulnerable to Path Traversal

  • Veröffentlicht: 05.05.2026
  • Aktualisiert: 11.10.2026 14:17

Summary

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.

Details

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.

PoC (Proof of Concept)

For the Bulk Delete endpoint, an authenticated attacker can supply a traversal sequence in the kb_names parameter: ../victim_user/kb_name

Because the path is passed directly to shutil.rmtree() without containment checks, this payload deletes directories outside the intended scope.

Impact

Any Langflow instance exposing this endpoint to authenticated users is vulnerable. This exposes the server to:

  • Cross-user data compromise: Deletion of directories within another tenant's knowledge base space.
  • Arbitrary filesystem manipulation: Directory deletion at any path on the server where the application has write permissions.
  • Service disruption & Data Loss: Deletion of critical application files or unrecoverable data loss if backups are co-located on the same filesystem.

Fixes

The issue was addressed in PR #12243, which applies Path.resolve() to normalize the supplied path and validates that it starts with the authenticated user's directory before deletion. Subsequent updates (backported from PR #12337) introduced robust containment checks using Path.is_relative_to() to prevent prefix-ambiguity bugs.

Acknowledgements

Thanks to the security researchers who responsibly disclosed this vulnerability:

  • @ddlxstudio
  • @nekros1xx

Betroffene Software

Klicken Sie auf eine Technologie, um alle zugehörigen Schwachstellen anzuzeigen.

PlattformPaketAnfällige VersionenBehoben in
Python (PyPI) langflow < 1.9.0 1.9.0

Verweise

CVSS-Wert 9.6/10
CVSS-Vektor
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H
Schwäche (CWE)
CWE-22
Plattform
Python (PyPI)
Paket
langflow
Veröffentlicht
05.05.2026
Aktualisiert
11.10.2026 14:17

Quellen und Lizenzen

OSV / GitHub Advisory Database - GHSA-9whx-c884-c68q - CC BY 4.0

OSV / GitHub Advisory Database - PYSEC-2026-377 - PyPA Advisory Database; CC BY 4.0

Schwachstellenhistorie: langflow

Alle veröffentlichten Schwachstellen dieses Pakets (Python (PyPI)), neueste zuerst. Zeigt, ob es ein einmaliger Ausrutscher ist oder ein Paket, das man im Auge behalten muss.

Alle (42) im Archiv
Einträge insgesamt
42
Erste → letzte
06.2024 10.2026
Ohne Fix
7
In Angriffen ausgenutzt
5

Verteilung nach Schweregrad

  • Kritisch 15
  • Hoch 17
  • Mittel 7
  • Niedrig 3

Veröffentlichungen pro Jahr

  1. 2024: 4
  2. 2025: 5
  3. 2026: 33
Schweregrad:
  1. Kritisch · 9.1 CVE-2026-9205 < 1.10.1 1.10.1
  2. Kritisch · 9.8 CVE-2026-8505 >= 1.7.0, < 1.9.1 1.9.1
  3. Hoch · 8.8 CVE-2026-7700 >= 1.3.0, < 1.10.3 1.10.3
  4. Kritisch · 9.6 CVE-2026-48519 < 1.9.2 1.9.2
  5. Langflow Knowledge Bases API is Vulnerable to Path Traversal dieser Eintrag
    Kritisch · 9.6 CVE-2026-42048 < 1.9.0 1.9.0
  6. Hoch · 7.5 CVE-2026-33484 >= 1.0.0, < 1.9.0 1.9.0
  7. Kritisch · 9.9 CVE-2026-33309 >= 1.2.0, < 1.9.0 1.9.0
  8. Kritisch · 9.8 In Angriffen ausgenutzt CVE-2026-33017 < 1.9.0 1.9.0
  9. Kritisch · 9.8 CVE-2026-27966 <= 1.8.0rc2 keine Korrektur
  10. Hoch In Angriffen ausgenutzt CVE-2026-0770 <= 1.7.3 keine Korrektur
  11. Hoch · 7.7 CVE-2025-68477 < 1.7.1 1.7.1
  12. Hoch · 7.1 CVE-2025-68478 < 1.7.1 1.7.1
  13. Kritisch In Angriffen ausgenutzt CVE-2025-3248 < 1.3.0 1.3.0

Erkennen Sie Schwachstellen in Ihrer Anwendung

Mit der DockRay-Integration und aktivierter Softwareinventarisierung prüft DockRay gemeldete Komponentenversionen auf bekannte Schwachstellen und benachrichtigt Sie über bestätigte Treffer. Die Abdeckung hängt von der unterstützten Technologie und den verfügbaren Meldungen ab.

Anwendung verbinden
DockRay Newsletter

Anwendungssicherheit in Ihrem Postfach

Wichtige Schwachstellen, konkrete Empfehlungen und praktische Tipps für Ihre Anwendungen. Wählen Sie Ihre Technologien und verfolgen Sie, was für Ihr Projekt relevant ist.

  • Eine tägliche Zusammenfassung neuer Schwachstellen, auch kritischer.
  • Benachrichtigungen über wichtige Updates.
  • Praktische Tipps zur Sicherheit und Überwachung von Anwendungen.

Leer lassen, um Meldungen zu allen Technologien zu erhalten.

Kostenlos anmelden. In jeder E-Mail mit einem Klick abmelden.