Command Injection Vulnerability in Chainlit Framework by Chainlit
CVE-2026-45018
What is CVE-2026-45018?
The Chainlit Framework versions 2.4.0rc0 to 2.12.0 have a critical vulnerability that allows command injection via an unauthenticated endpoint. When the feature features.mcp.enabled is enabled in .chainlit/config.toml, the /mcp POST endpoint can be exploited by sending a user-controlled fullCommand string. The vulnerability is due to insufficient validation of command parameters, specifically in the validate_mcp_command() function, allowing attackers to execute arbitrary shell commands under the privileges of the Chainlit process. If the allowed_executables list is not configured, any executable can be run, vastly increasing the risk of command injection attacks. This vulnerability has been addressed in version 2.12.0.
Affected Version(s)
chainlit >= 2.4.0rc0, < 2.12.0
