Langflow Smart Transform prompt injection can lead to code execution (CVE-2026-7700)
Summary
Per the vendor advisory, Langflow versions 1.3.0 through 1.10.2 contain a code-injection flaw in the Smart Transform component, which evaluates a model-generated Python lambda. A flow author can exploit it directly. It can also be exploited indirectly through prompt injection where an exposed flow passes attacker-controlled content into Smart Transform, subject to the configured model following the injected instruction. The advisory lists 1.10.3 as the patched version.
Severity
Timeline
GitHub advisory GHSA-9fpm-3445-2vx4 for CVE-2026-7700 published. (per the vendor advisory)
How it happened
Per the vendor advisory, Smart Transform puts flow-author instructions and a preview of input data into a prompt asking an LLM to generate a Python lambda. It applies only syntactic format checks, evaluates the result with Python's full builtins, and invokes it inside the Langflow process. Code then runs with the privileges of the Langflow service process.
How to check your app
- 1.3.0 to 1.10.2: Check whether the installed langflow package is in this range; 1.10.3 is the listed patched version.
- 1.3.0 to 1.10.2: Check whether any runnable flow uses Smart Transform (LambdaFilterComponent).
- 1.3.0 to 1.10.2: Check whether any exposed flow passes attacker-controlled or external content into Smart Transform.
Sources
Corrections and updates
Cite this entry
- Title
- Langflow Smart Transform prompt injection can lead to code execution (CVE-2026-7700)
- Added
- Nov 20, 2026
- URL
- https://vibeincidents.com/incidents/langflow-cve-2026-7700/
- Suggested citation
VibeIncidents. "Langflow Smart Transform prompt injection can lead to code execution (CVE-2026-7700)." Nov 20, 2026. https://vibeincidents.com/incidents/langflow-cve-2026-7700/