{"id":"CVE-2026-42867","published":"2026-06-23T16:29:11Z","modified":"2026-06-23T17:02:43Z","title":"Langflow: Path Traversal in Knowledge Bases API via Creation Endpoint","vendor":"langflow-ai","product":"langflow","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00466,"percentile":0.41262,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/langflow-ai/langflow/security/advisories/GHSA-79ph-745m-6wxq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langflow-ai/langflow/pull/12337","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":8.25},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"langflow-ai","affectedVersions":[{"vendor":"langflow-ai","product":"langflow","versions":["< 1.9.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-06-23T17:01:29.364041Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langflow","vulnerableRanges":["<1.9.0"],"patched":["1.9.0"],"from":["GHSA-79ph-745m-6wxq","PYSEC-2026-2566"],"provenance":"source"}],"summary":{"text":"Langflow, an AI agent and workflow builder, contains a path traversal flaw in its Knowledge Bases API at the POST /api/v1/knowledge_bases creation endpoint, where user-supplied knowledge base names are used to build file paths without sanitisation or containment checks. An attacker with valid authentication can exploit it to create directories and write files at arbitrary locations on the server's filesystem, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:50Z"},"euvd":{"id":"EUVD-2026-38518","exploited":false,"provenance":"source"}}