Path traversal in Langflow - CVE-2026-42867
Published: June 12, 2026
Langflow
Detailed vulnerability description
The vulnerability allows a remote attacker to create directories and write files outside the intended directory.
The vulnerability exists due to path traversal in the create_knowledge_base function within the Knowledge Bases API when handling crafted knowledge base names in POST /api/v1/knowledge_bases requests. A remote attacker can send a specially crafted request with traversal sequences or an absolute path to create directories and write files outside the intended directory.
The issue affects filesystem operations for embedding_metadata.json and schema.json written to the attacker-controlled path.