Skip to content
MediumVulnerability

GHSA-79ph-745m-6wxq: Langflow: Path Traversal in Knowledge Bases API via Creation Endpoint

Published
Record updated
View JSON
Affected
  • langflow <= 1.8.4
Fixed in
1.9.0
  • released April 14, 2026, 63 days before disclosure
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.5%

Summary

Langflow's Knowledge Bases API, specifically the POST /api/v1/knowledge_bases endpoint, builds filesystem paths directly from the user-supplied name field without sanitization or containment checks. An authenticated attacker can use traversal sequences or absolute paths to create directories and write embedding_metadata.json and schema.json anywhere the application has write permissions, enabling cross-user data compromise, arbitrary directory creation, and overwriting of existing knowledge base files.

Mitigation

Fixed in PR #12337, which adds the _validate_kb_path_containment() helper using Path.is_relative_to() and applies it before any filesystem operations. Regression tests confirm traversal payloads return 403 Forbidden.