All vulnerabilities

Servers and applications

GHSA-33p4-w7j3-33mw

Langflow 1.0.16 - 1.11.6: unsafe eval() on Tool-Mode input options in schema.py

Severity
Low 2.1
Published
28 Sept 2026
Last changed
28 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.12.0
Weakness
Code injection (CWE-94)Eval injection (CWE-95)
Attack
Over the network · Only under certain conditions · Needs an administrator account · No user action needed
Attacker can
Read some data · Change some data · Slow it down
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
Sources
Project advisories (GitHub)

Description

From Langflow 1.0.16 through 1.11.6, create_input_schema() and create_input_schema_from_dict() in schema.py built a typing.Literal type for inputs with an options list (for example DropdownInput) by interpolating the list into a string and passing it to eval():

The sink runs whenever a component is converted into a LangChain tool (ComponentToolkit.get_tools()), for example when a custom component with tool_mode=True is saved through Check & Save (POST /api/v1/custom_component), or when a Tool-Mode component or flow-as-tool is built.

This was fixed in Langflow 1.12.0 by #14502, which replaces eval() with Literal[tuple(options)].

  • POST /api/v1/custom_component (src/backend/base/langflow/api/v1/endpoints.py) builds the frontend node and calls Component.run_and_validate_update_outputs(field_name="tool_mode", ...).
  • When tool_mode is true, run_and_validate_update_outputs() calls _build_tools_metadata_input() (src/lfx/src/lfx/custom/custom_component/component.py).
From langflow-ai/langflow's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LangflowServers and applications · github:langflow-ai/langflow
  • From 1.0.16 before 1.12.0

About Langflow

Langflow is a powerful tool for building and deploying AI-powered agents and workflows.

From its GitHub repository.
Weekly downloads (PyPI)
8,374PyPI Stats, 15 Nov 2026
Docker Hub pulls
4,731,179Docker Hub, 15 Nov 2026
GitHub stars
156,656GitHub, 15 Nov 2026
Forks
10,412GitHub, 15 Nov 2026
Latest release
v1.13.2GitHub, 15 Nov 2026
Released
10 Nov 2026GitHub
License
MITGitHub
First published on GitHub
8 Feb 2023GitHub

References