Code Injection in Langflow - CVE-2026-9198
Published: August 7, 2026
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to improper control of code generation in the /api/v1/validate/code endpoint when handling code submitted after obtaining a bearer token from /api/v1/auto_login. A remote attacker can obtain a superuser bearer token and submit malicious Python code to execute arbitrary code.
This affects default-configured instances where the auto-login feature is enabled and the validation endpoint is network-accessible.