All vulnerabilities

Servers and applications

GHSA-9fpm-3445-2vx4

Prompt injection in Langflow Smart Transform can lead to code execution

Severity
High 8.8
Published
4 Aug 2026
Last changed
4 Aug 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.10.3
Weakness
Code injection (CWE-94)
Attack
Over the network · Needs a user account · No user action needed
Attacker can
Read data · Change data · Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

Langflow versions 1.3.0 through 1.10.2 contain a code-injection vulnerability in the Smart Transform (LambdaFilterComponent) component.

Smart Transform places flow-author instructions and a preview of its input data into a prompt asking an LLM to generate a Python lambda. It then extracts a one-line lambda from the model response, applies only syntactic format checks, evaluates it with Python's full builtins, and invokes the resulting function inside the Langflow process.

A malicious flow author can exploit this directly through the Instructions field. In deployments where an exposed flow passes attacker-controlled content into Smart Transform, an attacker may also exploit it indirectly through prompt injection, subject to the configured model following the injected instruction.

Vulnerable Code Location: src/lfx/src/lfx/components/llm_operations/lambda_filter.py (line 242 in v1.10.2)

For example, an attacker can attempt to make the model return:

lambda x: import("os").system("id")

From langflow-ai/langflow's security advisory. Shortened; the full text is there.

Workarounds

Until an upgrade is possible:

  • Remove Smart Transform from runnable flows.
  • Restrict flow creation, editing, and execution to trusted users.
  • Do not route untrusted or externally controlled data through Smart Transform.
  • Limit the Langflow process's filesystem, network, and credential access.
Workarounds as given by langflow-ai/langflow's security advisory.

Affected software

SoftwareAffected versions
LangflowServers and applications · github:langflow-ai/langflow
  • From 1.3.0 before 1.10.3

About Langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

From its GitHub repository.
Weekly downloads (PyPI)
8,374PyPI Stats, 15 Nov 2026
Docker Hub pulls
4,731,179Docker Hub, 15 Nov 2026
GitHub stars
156,656GitHub, 15 Nov 2026
Forks
10,412GitHub, 15 Nov 2026
Latest release
v1.13.2GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MITGitHub
First published on GitHub
8 Feb 2023GitHub

References