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

Medium 6.5 Published Updated

An authenticated attacker can exploit a path traversal flaw in the Knowledge Bases API to write arbitrary files to the server filesystem.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-42867?

CVE-2026-42867 is a medium-severity path traversal vulnerability in Langflow Langflow, published on 23 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-22

Which versions are affected by CVE-2026-42867?

3 open source packages ship an affected version, including langflow. It affects 1 product.

PackageAffectedFixed in
langflow PyPIAll versions1.9.0
langflow PyPIAll versions1.9.0
langflow PyPIAll versions1.9.0

Products include Langflow Langflow.

How do I fix CVE-2026-42867?

Upgrade langflow to 1.9.0 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-42867 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42867 exists.

All Langflow Langflow vulnerabilities

Sources

Also known as GHSA-79ph-745m-6wxq, PYSEC-2026-2566.

Is CVE-2026-42867 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free