CVE-2026-45018: Chainlit MCP Stdio Command Injection
CVE-2026-45018 is a critical OS command-injection vulnerability in Chainlit versions 2.4.0rc0 through 2.11.x. When MCP is enabled, an unauthenticated MCP connection could supply a complete command string for a stdio-backed server. Chainlit parsed the command but validated only the executable basename against the configured executable allowlist; all subsequent arguments were passed unchecked to subprocess creation. An omitted allowlist was interpreted as permitting all local executables. Even with an allowlist, dual-use programs such as npx could be invoked with command-execution arguments, resulting in arbitrary shell-command execution. Chainlit 2.12.0 removes client control of stdio command strings and instead requires server-side declaration of MCP servers.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An unauthenticated remote attacker able to reach the MCP service can execute arbitrary operating-system commands with the privileges of the Chainlit process. This can result in complete compromise of the application host within that process's security context, including access to application data and secrets, modification or destruction of data, persistent payload installation, and use of the host to pivot into connected internal networks.
Mitigation
If you can’t patch tonight, do this now.
If immediate upgrading is not possible, disable MCP by setting features.mcp.enabled to false. Apply authentication to MCP access to remove the unauthenticated attack path, while recognizing that authentication does not correct the injection flaw for authenticated attackers. Constrain the Chainlit process using least privilege, prevent unnecessary process execution, and restrict outbound network connectivity to limit post-exploitation impact.
Remediation
Patch, then assume compromise.
Upgrade Chainlit to version 2.12.0 or later. The fixed design removes client-supplied stdio command selection and requires MCP servers to be explicitly defined in server-side configuration, with clients selecting only a configured server by name. Migrate legacy MCP configuration, including stdio executable-allowlist settings, before re-enabling MCP because legacy settings are incompatible with the updated configuration model.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-45018 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-45018 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-45018?
- Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-45018.
- Is there a patch for CVE-2026-45018?
- Upgrade Chainlit to version 2.12.0 or later. The fixed design removes client-supplied stdio command selection and requires MCP servers to be explicitly defined in server-side configuration, with clients selecting only a configured server by name.
- How severe is CVE-2026-45018?
- CVE-2026-45018 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.1% (66th percentile) as of Sep 25, 2026.
Recent activity
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.