# CVE-2026-42867: Langflow: Path Traversal in Knowledge Bases API via Creation Endpoint

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.35%, higher than 30% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-16T17:35:09.000Z
- Modified: 2026-10-26T11:10:00.157Z
- Also known as: GHSA-79ph-745m-6wxq, PYSEC-2026-2566
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to 1.9.0, Langflow is vulnerable to Path Traversal in the Knowledge Bases API (POST /api/v1/knowledge_bases). This occurs because user-supplied knowledge base names are used directly to create file paths without proper sanitization or containment checks. An authenticated attacker can exploit this flaw to create directories and write files anywhere on the server's filesystem. This vulnerability is fixed in 1.9.0.

(As written by CVE List.)

## Affected

- langflow-ai langflow: < 1.9.0
- langflow (PyPI): before 1.9.0
- langflow langflow: before 1.9.0

## Every score

- GitHub_M: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`
- PyPA Advisory Database: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L`

## References

- <https://github.com/langflow-ai/langflow/security/advisories/GHSA-79ph-745m-6wxq> (exploit, vendor-advisory, web)
- <https://github.com/langflow-ai/langflow/pull/12337> (issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42867> (advisory)
- <https://github.com/advisories/GHSA-79ph-745m-6wxq> (advisory)
- <https://github.com/langflow-ai/langflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-2566.yaml> (web)
- <https://pypi.org/project/langflow> (package, web)

## Sources

- CVE List: [CVE-2026-42867](https://www.cve.org/CVERecord?id=CVE-2026-42867), CVE Terms of Use, modified 2026-06-23
- GitHub Advisory Database: [GHSA-79ph-745m-6wxq](https://github.com/advisories/GHSA-79ph-745m-6wxq), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-42867](https://nvd.nist.gov/vuln/detail/CVE-2026-42867), Public domain, modified 2026-10-26
- PyPA Advisory Database: [PYSEC-2026-2566](https://osv.dev/vulnerability/PYSEC-2026-2566), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-42867 · Whole record: https://cve.day/CVE-2026-42867.json · Rebuilt by cve.day 2026-11-25T22:59:25.474Z
