Quick answers
- Is CVE-2026-42048 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-42048 being exploited in the wild.
- How severe is CVE-2026-42048?
- Critical severity, with a CVSS score of 9.6, published 12 May 2026.
- Which products and versions are affected?
- langflow (PyPI) ECOSYSTEM:introduced=0,fixed=1.9.0.
- Is there a fix for CVE-2026-42048?
- Yes. langflow (PyPI): upgrade to 1.9.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-42048 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-42048?
- Check whether you run langflow (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- langflow (PyPI): upgrade to 1.9.0 or later
pip install "langflow>=1.9.0"
Technical details
A path traversal vulnerability exists in the `delete_knowledge_bases_bulk` function within `src/backend/base/langflow/api/v1/knowledge_bases.py`. The endpoint `DELETE /api/v1/knowledge_bases` fails to sanitize the `kb_names` parameter, concatenating user input directly into file paths used by `shutil.rmtree()`. By supplying traversal sequences (e.g., `../`), an authenticated attacker can bypass intended directory boundaries to delete any directory the application process has permissions to modify. The vulnerability was fixed in version 1.9.0 by implementing path normalization and strict containment checks using `Path.is_relative_to()`.
Affected products
- langflow-ai Langflow < 1.9.0
Identifiers
- CVE-2026-42048
- GHSA-9whx-c884-c68q
- PYSEC-2026-377
Timeline
- 2026-04-27: advisory: GitHub Security Advisory published
- 2026-05-12: disclosed: CVE-2026-42048 published to NVD