CVE-2026-7869: Langflow OSS is affected by arbitrary code execution in custom component validation and trusted code enforcement
IBM Langflow OSS 1.0.0 through 1.10.3 is vulnerable to Path Traversal in the Knowledge Bases API (POST /api/v1/knowledgebases). 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.
Other sources
Langflow is vulnerable to Path Traversal in the Knowledge Bases API (POST /api/v1/knowledgebases). 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.
— IBM
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
IBM Langflow OSSto a version that resolves this vulnerability.Fixed in 1.11.0 - Compensating control
For the Knowledge Bases API endpoint (POST /api/v1/knowledge_bases), implement request-side path containment/sanitization so user-supplied knowledge base names cannot be used to create file paths outside an intended base directory (e.g., reject/normalize names with path traversal sequences).
- Compensating control
Constrain the filesystem impact of the Langflow process (run with least-privilege and restrict write permissions to only the intended directories used for knowledge bases) to limit the ability of path traversal to write files anywhere.
Event History
Frequently Asked Questions
What is the severity of CVE-2026-7869?
The severity of CVE-2026-7869 is classified as medium with a score of 5.4.
What type of vulnerability is described by CVE-2026-7869?
CVE-2026-7869 describes an arbitrary code execution vulnerability due to path traversal in IBM Langflow OSS.
How does CVE-2026-7869 affect IBM Langflow OSS?
CVE-2026-7869 affects IBM Langflow OSS by allowing an authenticated attacker to execute arbitrary code through unsafe file path handling.
Which versions of IBM Langflow OSS are affected by CVE-2026-7869?
CVE-2026-7869 affects IBM Langflow OSS versions 1.0.0 through 1.10.3.
How can I mitigate the risk of CVE-2026-7869?
To mitigate the risk of CVE-2026-7869, ensure proper sanitization of user-supplied inputs and apply any security patches provided by IBM.