# CVE-2026-42048: Langflow: Path Traversal in Langflow Knowledge Bases API

- Severity: Critical 9.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`
- 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): 4.20%, higher than 91% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-05T18:28:59.000Z
- Modified: 2026-11-16T15:30:03.426Z
- Also known as: GHSA-9whx-c884-c68q, PYSEC-2026-377
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation poc, automatable no, 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 (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. 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 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.6 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:H`

## References

- <https://github.com/langflow-ai/langflow/security/advisories/GHSA-9whx-c884-c68q> (exploit, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42048> (advisory)
- <https://github.com/langflow-ai/langflow> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-377.yaml> (web)
- <https://pypi.org/project/langflow> (package, web)
- <https://github.com/advisories/GHSA-9whx-c884-c68q> (advisory)

## Sources

- CVE List: [CVE-2026-42048](https://www.cve.org/CVERecord?id=CVE-2026-42048), CVE Terms of Use, modified 2026-05-13
- GitHub Advisory Database: [GHSA-9whx-c884-c68q](https://github.com/advisories/GHSA-9whx-c884-c68q), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-42048](https://nvd.nist.gov/vuln/detail/CVE-2026-42048), Public domain, modified 2026-11-11
- PyPA Advisory Database: [PYSEC-2026-377](https://osv.dev/vulnerability/PYSEC-2026-377), CC-BY-4.0, modified 2026-07-13

---

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