SB20260424127 - Code Injection in Langflow
Published: April 24, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Code Injection (CVE-ID: CVE-2026-27966)
CWE-ID: CWE-94 - Improper Control of Generation of Code ('Code Injection')
CVSSv4: 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
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 update from vendor's website.