CVE-2026-101861

Langflow Code Execution via eval() in Component Input Schema

State
Published
Severity
2.1 Low
Published
Sep 28, 2026
Updated
Oct 1, 2026
Reserved
Sep 28, 2026

Read the record on cve.org

Description

Langflow 1.0.16 before 1.12.0 and 0.0.94 before 1.12.0 contain an unsafe eval() vulnerability in schema.py that allows authenticated attackers to achieve code execution by placing a Python object with a malicious __repr__ method into component input options lists. The eval() sink is triggered when a component is converted into a LangChain tool via ComponentToolkit.get_tools(), including during custom component saves through the API, by interpolating options into a Literal type string that is passed directly to eval() without safe evaluation controls.

Scores

CVSSScoreVectorSource
4.02.1 LowCVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NVulnCheck
3.14.1 MediumCVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:L/I:L/A:LVulnCheck

Weaknesses

  • CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
langflowlangflow-ai
  • 1.0.16 to before 1.12.0Affected
  • 0.0.94 to before 1.12.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.