Intel

AIKIDO-2026-805851

langflow is vulnerable to Code Injection

Code InjectionGHSA-w584-2h2r-2hvf Published 3 days ago

88

High Risk

This Affects:

PYTHONlangflow
1.7.2 - 1.10.0
Fixed in 1.10.1
Are you affected? Scan for Free

TL;DR

The /api/v1/validate/code endpoint validates user-supplied Python by executing its function definitions in a restricted scope using exec(). Because Python evaluates decorators when a function definition executes, a request containing a function with a malicious decorator runs arbitrary code during validation. An authenticated user can send such a payload to obtain code execution with the privileges of the Langflow process. The fix compiles the code instead of executing it so decorators are never evaluated.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

langflow is vulnerable to Code Injection in versions 1.7.2 - 1.10.0.

How to fix this

Upgrade the langflow library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform