Langflow fixes authenticated remote code execution vulnerability caused by validate_code decorator
Langflow: Title Authenticated Remote Code Execution in validate_code via Malicious Decorators Description
Langflow's /api/v1/validate/code endpoint uses exec() in the validate_code function to execute user-submitted FunctionDef nodes, and since Python evaluates decorators immediately at definition time, attackers can exploit this to execute arbitrary code on the server as any authenticated user. The endpoint had no authentication at all before v1.7.2; from v1.7.2 to v1.10.0 it required a valid session but could still be triggered, and under AUTO_LOGIN any user could also exploit it. The vulnerability has been fixed in v1.10.1 via PR #13696: validate_code() no longer exec()s the submitted function definition, only using compile() to expose syntax errors, while also addressing the same type of exploitation triggered through default argument evaluation in the duplicate advisory GHSA-xjq8-cqrm-7m4x.
The announcement gives the root cause of the RCE in Langflow's code validation interface, the affected version range, and the fixed version; teams deploying this platform can use it to check and upgrade.