Skip to content
GitHub Security Advisories·Indexed by this site · Originally published· Event →SelectedAttention37

Langflow Smart Transform has a prompt injection vulnerability leading to code execution; fixed in 1.11.0 and 1.10.3

Langflow: Prompt injection in Langflow Smart Transform can lead to code execution

AI summary

Langflow 1.3.0 through 1.10.2 Smart Transform (LambdaFilterComponent) component has a code injection vulnerability. This component concatenates the flow author's instructions and input data preview into the prompt, lets the LLM generate Python lambda, then executes it with eval with full builtins after only a syntax format check, and calls it within the Langflow process. A malicious flow author can exploit it directly through the Instructions field; if an exposed flow passes attacker-controlled content into Smart Transform, it may also be indirectly exploited via prompt injection, depending on whether the model follows the injected instructions. Successful exploitation can obtain Langflow service process permissions, read or modify credentials, files, application data, and network resources, and in shared deployments may affect other tenants.

Why it was selected

The advisory provides the root cause, impact scope, and fixed version. Teams using Langflow can use this to decide whether to upgrade or remove Smart Transform.

Read originalgithub.com