CVE-2026-45018 json
Chainlit: Command injection via MCP stdio transport allows unauthenticated remote code execution
published 2026-08-25 2 mo ago modified 2026-09-10 59 d ago also EUVD-2026-65737 , GHSA-w3fx-mc44-mf6j , PYSEC-2026-3812
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.1%
- EPSS 1.1% chance of exploitation in 30 days, percentile 65%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi chainlit 2.12.0
- chainlit chainlit 2.12.0
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 mo ago
Exploit prediction
1.09% chance of exploitation in the next 30 days, higher than 65% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/Chainlit/chainlit/security/advisories/GHSA-w3fx-mc44-mf6j referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | chainlit | >=2.4.0rc0, <2.12.0 |
2.12.0 |
Affected products
- Chainlit chainlit
Classification
- Weakness
-
- CWE-78 Improper Neutralization of Special Elements used in an OS Command
References
-
github.com
/Chainlit/chainlit/commit/0565fd0eccb915fce159929598b053ed79f6e0c9
web
-
github.com
/Chainlit/chainlit/security/advisories/GHSA-w3fx-mc44-mf6j
exploit, web
- github.com /Chainlit/chainlit/blob/2.12.0/docs/security-advisory-2026-mcp.md#spl-2026-001--command-injection-via-mcp-stdi
-
github.com
/Chainlit/chainlit/releases/tag/2.12.0
web
-
github.com
/Chainlit/chainlit
package
-
pypi.org
/project/chainlit
package
-
github.com
/advisories/GHSA-w3fx-mc44-mf6j
advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-45018
advisory
Sources
- CVE List CVE-2026-45018
- GitHub Advisory GHSA-w3fx-mc44-mf6j
- NVD CVE-2026-45018
- OSV PYSEC-2026-3812
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.