#VU127533 Code Injection in Langflow - CVE-2026-27966

 

#VU127533 Code Injection in Langflow - CVE-2026-27966

Published: April 24, 2026


Vulnerability identifier: #VU127533
Vulnerability risk: High
CVSSv4.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
Vulnerable software:
Langflow
Software vendor:
Langflow

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.


Remediation

Install security update from vendor's website.

External links