| Field | Value |
|---|---|
| CVE / NVD | CVE-2026-45018 |
| Date (index) | 2026-08-25 |
| Affected product (index) | Chainlit (chainlit): MCP stdio transport command injection via POST /mcp |
| GHSA ID | GHSA-w3fx-mc44-mf6j |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2026-08-25 |
| Ecosystem | PyPI |
| Component | chainlit |
| EPSS score | 0.010860000 (FIRST EPSS, 2026-09-26) |
| CVSS score | 9.8 (v3.1) |
| CWE | CWE-78 |
| Affected versions | >= 2.4.0rc0, < 2.12.0 |
| Fixed versions | 2.12.0 |
| Fix status | Patched |
| Exploit status | Public advisory |
| Notes | Added during 2026-09-07 gap review against NVD/GitHub Advisory MCP searches. |
When features.mcp.enabled=true, Chainlit exposed POST /mcp for stdio transport and accepted attacker-controlled command definitions, enabling remote code execution on the Chainlit host.
Exposure depends on deployment: network-reachable MCP transports, enabled MCP features, local listeners without authentication, or trusted workspace/project MCP configuration treated as safe input.
Client-supplied stdio MCP command strings were passed to subprocess execution without adequate validation.
Unauthenticated callers can execute arbitrary OS commands with Chainlit process privileges when MCP is enabled.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.
Upgrade to the vendor-fixed version where available. Restrict MCP listeners to trusted networks, disable MCP features when not required, and treat project/workspace MCP configuration as untrusted input.
Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
https://github.com/Chainlit/chainlit/releases/tag/2.12.0