{"id":"CVE-2026-45018","published":"2026-08-25T19:18:46Z","modified":"2026-08-25T19:33:30Z","title":"Chainlit: Command injection via MCP stdio transport allows unauthenticated remote code execution","vendor":"Chainlit","product":"chainlit","tier":"tail","description":{"text":"Chainlit is a Python framework for building production-ready conversational AI applications. From 2.4.0rc0 until 2.12.0, Chainlit deployments with features.mcp.enabled set to true in .chainlit/config.toml expose the POST /mcp endpoint without requiring authentication. For stdio transport, the endpoint accepts a user-controlled fullCommand string. The validate_mcp_command() function in backend/chainlit/mcp.py checks only the executable name against config.features.mcp.stdio.allowed_executables and passes unchecked arguments to StdioServerParameters in backend/chainlit/server.py. Because npx supports the -c argument, an attacker can execute arbitrary shell commands with the privileges of the Chainlit process. If allowed_executables is unset, its None default is treated as allowing every executable. This issue is fixed in version 2.12.0.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01086,"percentile":0.66135,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/Chainlit/chainlit/security/advisories/GHSA-w3fx-mc44-mf6j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Chainlit/chainlit/commit/0565fd0eccb915fce159929598b053ed79f6e0c9","tags":["x_refsource_MISC"]},{"url":"https://github.com/Chainlit/chainlit/blob/2.12.0/docs/security-advisory-2026-mcp.md#spl-2026-001--command-injection-via-mcp-stdio","tags":["x_refsource_MISC"]},{"url":"https://github.com/Chainlit/chainlit/releases/tag/2.12.0","tags":["x_refsource_MISC"]}],"priority":{"score":20.1,"factors":[{"name":"EPSS percentile","points":13.23},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"chainlit","affectedVersions":[{"vendor":"Chainlit","product":"chainlit","versions":[">= 2.4.0rc0, < 2.12.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-08-25T19:33:08.662498Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"chainlit","vulnerableRanges":[">=2.4.0rc0, <2.12.0"],"patched":["2.12.0"],"from":["GHSA-w3fx-mc44-mf6j","PYSEC-2026-3812"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-65737","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-22219","published":"2026-01-19","fixed":"2.9.4","kev":false},{"cve":"CVE-2026-56104","published":"2026-06-22","fixed":"2.10.1","kev":false,"link":{"from":"CVE-2026-56104","to":"CVE-2026-45018","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:chainlit","fromFixed":"2.10.1","toFixed":"2.12.0","daysApart":64}]}},{"cve":"CVE-2026-120492","published":"2026-11-02","fixed":"2.12.0","kev":false},{"cve":"CVE-2026-45018","published":"2026-08-25","fixed":"2.12.0","kev":false},{"cve":"CVE-2026-45019","published":"2026-08-25","fixed":"2.12.0","kev":false}],"package":"PyPI:chainlit"}}