Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. langflow
  4. ›
  5. CVE-2026-42048

CVE-2026-42048: Langflow Knowledge Bases API is Vulnerable to Path Traversal

May 5, 2026

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.

References

  • github.com/advisories/GHSA-9whx-c884-c68q
  • github.com/langflow-ai/langflow
  • github.com/langflow-ai/langflow/security/advisories/GHSA-9whx-c884-c68q
  • nvd.nist.gov/vuln/detail/CVE-2026-42048

Code Behaviors & Features

Detect and mitigate CVE-2026-42048 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.9.0

Fixed versions

  • 1.9.0

Solution

Upgrade to version 1.9.0 or above.

Impact 9.6 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/langflow/CVE-2026-42048.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:19:29 +0000.