Code Injection in Langflow - CVE-2026-27966

 

Code Injection in Langflow - CVE-2026-27966

Published: April 24, 2026


Vulnerability identifier: #VU127533
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Amber
CVE-ID: CVE-2026-27966
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: The vulnerability is being exploited in the wild
Vendor: Langflow
Affected software:
Langflow

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code.

The vulnerability exists due to improper control of code generation in the CSV Agent node when processing prompt input that reaches the exposed python_repl_ast tool. A remote attacker can send a specially crafted prompt to execute arbitrary code.

The issue is caused by allow_dangerous_code being hardcoded to true, which automatically exposes LangChain's Python REPL tool without a disable option.


How to mitigate CVE-2026-27966

Install security update from vendor's website.

Sources