CVE-2026-27966: Langflow Has Remote Code Execution
Affects langflowSource GCVE Database
Public exploit available (Metasploit) · CVSS 9.8 Critical.
Data as of 27 Oct 2026, 18:28 UTC
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
Weaponised: 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 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| PyPIlangflow | 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
The vendor recommends setting allow_dangerous_code=False by default or removing this parameter to prevent automatic enabling of the Python REPL tool. If the feature is necessary, a UI toggle should be provided with a default setting of False. Until a fix is released, avoid deploying vulnerable versions or restrict access to the CSV Agent functionality to trusted users only.
Description
Langflow's CSV Agent node hardcodes the parameter allow_dangerous_code=True, enabling LangChain's python_repl_ast tool. This allows remote attackers to execute arbitrary Python and OS commands on the server via crafted prompts, resulting in full remote code execution (RCE). There is no current configuration option to disable this behavior. Versions up to 1.8.0rc2 are affected. A proof of concept demonstrates creating a file on the server via this vulnerability.
References
- github.com/langflow-ai/langflow/security/advisories/GHSA-3645-fxcv-hqr4 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-27966 (opens in a new tab)
- github.com/langflow-ai/langflow/commit/d8c6480daa17b2f2af0b5470cdf5c3d28dc9e508 (opens in a new tab)
- github.com/langflow-ai/langflow (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/langflow/PYSEC-2026-376.yaml (opens in a new tab)
- pypi.org/project/langflow (opens in a new tab)