Skip to main content
VulnerabilityPublished Updated

CVE-2026-27966: langflow · Code Injection

Affects langflowSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
9.8Critical
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 26 Feb 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: evidence found.

    1 Metasploit module

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
langflow-ailangflowAffected
  • <1.8.0
Fixed in
  • 1.8.0
GitHublangflow-ai/langflowpkg:github/langflow-ai/langflowOther threatsAffected
  • <1.8.0
Fixed in
  • 1.8.0

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.

References

Community reviews

Loading reviews…