GHSA-w3fx-mc44-mf6j: Chainlit has command injection via MCP stdio transport that allows unauthenticated remote code execution
- Identifiers
- CVE-2026-45018GHSA-w3fx-mc44-mf6j
- Published
- Record updated
- Affected
- chainlit >= 2.4.0rc0, <= 2.11.1
- Fixed in
- 2.12.0
- released August 25, 2026, on the day of disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 1.1%
Summary
Chainlit versions from 2.4.0rc0 up to but not including 2.12.0 are affected when features.mcp.enabled is set to true in .chainlit/config.toml, tracked as CVE-2026-45018. The POST /mcp endpoint for stdio transport accepts a user-controlled fullCommand string, and validate_mcp_command() checks only the executable name against allowed_executables without restricting its arguments, so an unauthenticated attacker can pass npx -y -c with a payload to run arbitrary shell commands with the privileges of the Chainlit process. Since v2.7.0, MCP is disabled by default.
Mitigation
Fixed in 2.12.0. The fix removes fullCommand from the client request; stdio MCP servers are declared by the developer in .chainlit/config.toml under [[features.mcp.servers]] and selected by name, and per-server environment variables are set via an env mapping on the server entry. The source's Workarounds section is empty, so no interim workaround is stated.
Affected packages in the Exposure Registry
Matched by package name and ecosystem. Each entry shows whether the package delegates to a language model and how many tracked packages depend on it.
- chainlitPyPILLM dependency since 2025-03-09 · 2 tracked dependents
Topics
Related items
- HighCVE-2026-137056: DeepSeek-Reasonix command execution via git blame textconv driverSimilar attack · NVD/CVE Database
- MediumItaly and Switzerland warn of autonomous AI-driven cyberattacksSimilar attack · BleepingComputer
- MediumWhat defenders need to know about ARTEX, the agentic AI framework threat actors abuseSimilar attack · Microsoft Security Blog
- HighCVE-2026-136267 - Improper neutralization of special elements used in an OS command in Kiro WebSimilar attack · AWS Security Bulletins
- InfoThe AI Threat Horizon: Why Speed, Edge AI and Baselines Are Our Best DefenseSimilar attack · Palo Alto Unit 42