CVE-2026-7700
mediumpriority · track · 0EPSS 0.003 · 23 %ileDEEUUSEPSS · scored 2026-10-22
A weakness has been identified in langflow-ai langflow up to 1.8.4. This affects the function eval of the file src/lfx/src/lfx/components/llm_operations/lambda_filter.p of the component LambdaFilterComponent. Executing a manipulation can lead to code injection. The attack may be performed from remote. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–high · 1.3–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (8)
Products and version ranges known to be affected.
advisories (3)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2026-1337Langflow: Mehrere Schwachstellen ermöglichen CodeausführungDeutsch2026-05-03csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in Langflow ausnutzen, um beliebigen Programmcode auszuführen.
- GHSA-9fpm-3445-2vx4Langflow: Prompt injection in Langflow Smart Transform can lead to code execution2026-10-05ghsa · osvUS
## Summary 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. ## Vulnerability details **Vulnerable Code Location**: `src/lfx/src/lfx/components/llm_operations/lambda_filter.py` (line 242 in v1.10.2) ```python def _validate_lambda(self, lambda_text: str) -> bool: """Validate the provided lambda function text.""" return lambda_text.strip().startswith("lambda") and ":" in lambda_text # ... return eval(lambda_text) # noqa: S307 ``` For example, an attacker can attempt to make the model return: `lambda x: __import__("os").system("id")` This expression satisfies the vulnerable format checks. `eval()` creates the lambda with access to Python's default builtins, and the subsequent `fn(data)` invocation (in `_execute_lambda`) executes the command. Successful exploitation allows code execution with the privileges of the Langflow service process. This can expose or modify credentials, files, application data, and network resources accessible to that process, and may affect other tenants in shared deployments. ## PoC https://github.com/user-attachments/assets/13c48fe1-7225-4e0d-9687-2d2df1e87f0e ## Fix The reported path was addressed by validating the generated code's AST and evaluating it with a restricted builtins mapping. The mainline fix is in PR #13530 (`1641b28f`) and shipped in Langflow 1.11.0. The 1.10.3 backport is in PR #14071 (`94859df3`). Users should upgrade to Langflow 1.10.3 or later. ## 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. ## Credit - **Peyton Kennedy ([p80n-sec](https://github.com/p80n-sec)) of Endor Labs** — reporter (original finder) - **[SZXSec](https://github.com/SZXSec)** — reporter (duplicate report) - **[cyjhhh](https://github.com/cyjhhh)** — reporter (duplicate report) - **[0gur1](https://github.com/0gur1)** — reporter (duplicate report) - **[ajm4n](https://github.com/ajm4n)** — reporter (duplicate report, Finding 1 of a multi-finding submission) - **[andifilhohub](https://github.com/andifilhohub)** — analyst - **Jordan Frazier ([jordanrfrazier](https://github.com/jordanrfrazier))** — remediation developer
- PYSEC-2026-4232Langflow: Prompt injection in Langflow Smart Transform can lead to code execution2026-10-15vendor · osvUS
## Summary 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. ## Vulnerability details **Vulnerable Code Location**: `src/lfx/src/lfx/components/llm_operations/lambda_filter.py` (line 242 in v1.10.2) ```python def _validate_lambda(self, lambda_text: str) -> bool: """Validate the provided lambda function text.""" return lambda_text.strip().startswith("lambda") and ":" in lambda_text # ... return eval(lambda_text) # noqa: S307 ``` For example, an attacker can attempt to make the model return: `lambda x: __import__("os").system("id")` This expression satisfies the vulnerable format checks. `eval()` creates the lambda with access to Python's default builtins, and the subsequent `fn(data)` invocation (in `_execute_lambda`) executes the command. Successful exploitation allows code execution with the privileges of the Langflow service process. This can expose or modify credentials, files, application data, and network resources accessible to that process, and may affect other tenants in shared deployments. ## PoC https://github.com/user-attachments/assets/13c48fe1-7225-4e0d-9687-2d2df1e87f0e ## Fix The reported path was addressed by validating the generated code's AST and evaluating it with a restricted builtins mapping. The mainline fix is in PR #13530 (`1641b28f`) and shipped in Langflow 1.11.0. The 1.10.3 backport is in PR #14071 (`94859df3`). Users should upgrade to Langflow 1.10.3 or later. ## 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. ## Credit - **Peyton Kennedy ([p80n-sec](https://github.com/p80n-sec)) of Endor Labs** — reporter (original finder) - **[SZXSec](https://github.com/SZXSec)** — reporter (duplicate report) - **[cyjhhh](https://github.com/cyjhhh)** — reporter (duplicate report) - **[0gur1](https://github.com/0gur1)** — reporter (duplicate report) - **[ajm4n](https://github.com/ajm4n)** — reporter (duplicate report, Finding 1 of a multi-finding submission) - **[andifilhohub](https://github.com/andifilhohub)** — analyst - **Jordan Frazier ([jordanrfrazier](https://github.com/jordanrfrazier))** — remediation developer
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2026-7700cnnvd
- https://github.com/langflow-ai/langflow/releasesPatchcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2026-7700cnnvd
- https://vuldb.com/submit/804305enisa_euvd
- https://vuldb.com/vuln/360869enisa_euvd
- https://vuldb.com/vuln/360869/ctienisa_euvd
- https://www.yuque.com/mengnanbulalei/ognlsk/hte2a98ro5gf8tp9?singleDoc#%20%E3%80%8AFirst%20release%20of%20Langflow%201.8.3%20Smart%20Transform%20eval()/Lambda%20injection%20RCE%20vulnerability%20analysis+POC%E3%80%8Benisa_euvd
- https://vuldb.com/submit/804305nvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan