Code Injection in Langflow - #VU142380
Published: August 13, 2026
Vulnerability details
The vulnerability allows a remote user to execute arbitrary code.
The vulnerability exists due to improper control of code generation in the validate_code function exposed through the /api/v1/validate/code endpoint when processing user-supplied Python function definitions with malicious decorators. A remote user can send a specially crafted POST request containing a malicious decorator to execute arbitrary code.
Instances configured with AUTO_LOGIN can be exposed to any user without a valid session.