mcp-cve-project

CVE-2026-45018 | Chainlit MCP stdio command injection | Critical | 9.8

CVE Information

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.

CVE Breakdown

What is the vulnerability?

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.

Attack prerequisites / exposure

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.

CVE is because of what bug?

Client-supplied stdio MCP command strings were passed to subprocess execution without adequate validation.

MCP-specific impact / why it matters

Unauthenticated callers can execute arbitrary OS commands with Chainlit process privileges when MCP is enabled.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory.

Fix / Remediation

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.

Upstream fix (open source)

Exploit / PoC

Prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.

Detection / verification

Patch

https://github.com/Chainlit/chainlit/releases/tag/2.12.0