GHSA-79ph-745m-6wxq: Langflow: Path Traversal in Knowledge Bases API via Creation Endpoint
- Identifiers
- CVE-2026-42867GHSA-79ph-745m-6wxq
- Published
- Record updated
- 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.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- langflowPyPIReaches an LLM package through dependencies
Related items
- MediumCVE-2026-121936: easyVoice server-side request forgery through openaiBaseUrl in /api/v1/ttsSimilar attack · NVD/CVE Database
- MediumCVE-2026-118628: MLflow get-artifacts server-side request forgery information disclosureSimilar attack · NVD/CVE Database
- HighCVE-2026-118625: MLflow Tracking Server privilege escalation via get_endpointsSimilar attack · NVD/CVE Database
- InfoWhen trust becomes the payload: Inside the threats, etc quarterly reportSimilar attack · Elastic Security Labs
- MediumCritical Langflow flaws enable authentication bypass and RCESimilar attack · CSO Online