Langflow
Langflow: Path Traversal in Langflow Knowledge Bases API
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.9.0
Fixed in 1.9.0
Mitigation
Upgrade langflow to 1.9.0 or later.
References
- Vendor advisory github.com/langflow-ai/langflow/security/advis…
Timeline
Days relative to CVE publicationFirst public PoC 8.7 days after publication; not in CISA KEV. First PoC: EQSTLab/CVE-2026-42048 (created 21 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| EQSTLab/CVE-2026-42048 | 21 May 2026 +8.7 d | 2 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoDELETE /api/v1/knowledge_bases
- Body markers
"kb_names"inapplication/json- Ports
- 7860, 9101
- Seen in
- 1 repo: EQSTLab/CVE-2026-42048
- Evidence
- EQSTLab/CVE-2026-42048/README.md:81 EQSTLab/CVE-2026-42048/poc.py:34
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/api/v1/knowledge_bases(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [7860,9101] (msg:"GG PoC-Monitor CVE-2026-42048 langflow-ai langflow exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/api/v1/knowledge_bases"; http.request_body; content:"|22|kb_names|22|"; reference:url,poc.griffinguard.io/cve/CVE-2026-42048; classtype:web-application-attack; sid:9055053; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: langflow-ai langflow exploit attempt (CVE-2026-42048)
id: gg-pocmon-cve-2026-42048-9055053
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-42048. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-42048
logsource:
category: webserver
detection:
selection:
cs-method: DELETE
cs-uri-stem|contains|all:
- '/api/v1/knowledge_bases'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2026.42048