Code Injection in Langflow - CVE-2026-9198
Published: August 7, 2026 / Updated: August 31, 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.
Affected software
How to mitigate CVE-2026-9198
Links to Public Exploits and PoC-codes
- Exploit #13014 - cve-2026-9198_exploit () (August 31, 2026)
- Exploit #13011 - CVE-2026-9198 (CVE-2026-9198 - IBM Langflow OSS Unauthenticated Remote Code Execution (RCE)) (August 31, 2026)
- Exploit #12991 - EXPLOIT-CVE-2026-9198 () (August 31, 2026)
- Exploit #12972 - Langflow AI auto_login RCE (August 21, 2026)