← All advisories
CVE-2026-7700highPrompt injection2026-10-05

CVE-2026-7700: Langflow Smart Transform evals the lambda an LLM writes, so prompt injection can run code (fixed 1.10.3)

Langflow's Smart Transform component (LambdaFilterComponent) asks an LLM to write a Python lambda from the flow author's instructions and a preview of the input, checks only that the reply starts with 'lambda' and contains ':', and then eval()s it with full builtins inside the Langflow process. A flow author can run code directly, and attacker-controlled data passed into an exposed flow can do it through prompt injection. Langflow 1.3.0 to 1.10.2 are affected; fixed in 1.10.3 and 1.11.0.

01.

What it is

Vulnerable code: src/lfx/src/lfx/components/llm_operations/lambda_filter.py, where _validate_lambda() only checks the prefix and a colon before eval(lambda_text) (CWE-94).

A reply like lambda x: __import__("os").system("id") passes the check and runs when the component applies the function to the data, with the privileges of the Langflow service.

Direct route: anyone who can edit a flow's Instructions field. Indirect route: content an outside user controls flowing into Smart Transform in a public or API-exposed flow, if the model follows the injected instruction.

The fix validates the generated code's AST and evaluates it with restricted builtins (PR #13530 in 1.11.0, backported to 1.10.3 in PR #14071). Reported by Peyton Kennedy of Endor Labs; GitHub published the advisory to its database on 5 October 2026.

02.

How to check

  1. Check your Langflow version (`pip show langflow` or the version in the UI); 1.3.0 through 1.10.2 are affected.
  2. Search your flows for the Smart Transform component and note which ones take input from users, webhooks or fetched documents.
03.

How to fix

  1. Upgrade to Langflow 1.10.3 or later (1.11.0+ on the main line).
  2. Until then, remove Smart Transform from runnable flows, keep untrusted data out of it, and restrict who can create or edit flows.
  3. Run Langflow with minimal filesystem, network and credential access.
pip show langflow | grep -i ^version
# find flows that use Smart Transform in an exported flows folder
grep -rl 'LambdaFilterComponent' ./flows 2>/dev/null
04.

Sources

More advisories for this tool
The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.