CVE-2026-27966: langflow · Code Injection
Affects langflowSource CVE Database V5
Public exploit available (Metasploit) · 35% EPSS · CVSS 9.8 Critical : upgrade to 1.8.0 as a priority.
Data as of 22 Nov 2026, 21:14 UTC
- EPSS
- 35.2% chance of exploitation in 30 days – higher than 98% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.8.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 26 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 22 Nov 2026.
What to do
Upgrade langflow and langflow-ai/langflow to 1.8.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| langflow-ailangflow | Affected
| Fixed in
|
GitHublangflow-ai/langflowpkg:github/langflow-ai/langflowOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade all langflow installations to version 1.8.0 or later immediately to eliminate the vulnerability. If upgrading is not immediately possible, disable or restrict access to the CSV Agent node and the python_repl_ast tool to trusted users only, ideally isolating the service behind firewalls or network segmentation. Implement strict input validation and sanitization on all user inputs to prevent prompt injection attacks. Monitor logs for unusual command execution or access patterns indicative of exploitation attempts. Employ runtime application self-protection (RASP) or endpoint detection and response (EDR) tools to detect and block suspicious code execution. Regularly audit AI workflow configurations to ensure no unintended code execution capabilities are exposed. Finally, maintain an incident response plan to quickly address any suspected compromise.
Description
Langflow is a tool for building and deploying AI-powered agents and workflows. Prior to version 1.8.0, the CSV Agent node in Langflow hardcodes `allow_dangerous_code=True`, which automatically exposes LangChain’s Python REPL tool (`python_repl_ast`). As a result, an attacker can execute arbitrary Python and OS commands on the server via prompt injection, leading to full Remote Code Execution (RCE). Version 1.8.0 fixes the issue.