CVE-2026-27966: Langflow Remote Code Execution Vulnerability in CSV Agent

langflow Updated 29 Jun 2026

Summary

29/06/2026
No i
Critical
9.8

CVE-2026-27966: Langflow has Remote Code Execution in CSV Agent. Affects langflow versions < 1.8.0rc2. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Langflow is an open-source framework designed to facilitate the construction of applications that utilize large language models (LLMs). It allows users to create flows that integrate various components, such as agents and outputs, to manipulate and query data efficiently. However, a critical vulnerability exists within the CSV Agent component, which can lead to severe security risks.

Vulnerability Detail

The CSV Agent in Langflow has a hardcoded parameter 'allow_dangerous_code=True', which inadvertently exposes the Python REPL tool. This configuration allows attackers to execute arbitrary Python code and OS commands on the server through prompt injection. The vulnerability arises from the lack of a toggle or configuration option to disable this dangerous behavior, resulting in a potential full Remote Code Execution (RCE) scenario.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can manually modify the source code in 'src/lfx/src/lfx/components/langchain_utilities/csv_agent.py' to set 'allow_dangerous_code=False'. However, this is not a recommended long-term solution.

Conclusion

The Langflow CSV Agent vulnerability (CVE-2026-27966) poses a significant risk due to its ability to allow remote code execution through prompt injection. Users are strongly encouraged to update to the latest version or implement the recommended workarounds to mitigate the risk.

See every vulnerability recorded for langflow →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 9.8, indicating a critical severity level.

You can use the Vulert playground at Vulert Scanner to check if your application is affected without needing to sign up.

The vulnerability allows remote attackers to execute arbitrary Python code and system commands, potentially leading to a full takeover of the server environment.

Currently, there is no UI toggle or environment variable to disable this feature in the affected versions of Langflow.

If you cannot update immediately, consider implementing the temporary workaround by modifying the source code to disable the dangerous code execution.

Related vulnerabilities

Recent vulnerabilities recorded for langflow.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback