Chainlit MCP Endpoint Flaws Enable Unauthenticated RCE and SSRF
Emerging Technology Risk · 6 sources · Updated 3mo ago · First seen Apr 8, 2026

Chainlit released version 2.12.0 to remediate two unauthenticated vulnerabilities in its Model Context Protocol /mcp endpoint: critical command injection/RCE, CVE-2026-45018 (CVSS 9.8), and high-severity SSRF, CVE-2026-45019 (CVSS 7.2). Versions 2.4.0rc0 through 2.11.x are affected when features.mcp.enabled = true. The command-injection issue allowed attackers to submit client-controlled stdio fullCommand values; configurations with no allowed_executables restriction could allow arbitrary commands through permitted tooling such as npx -c, executing under the Chainlit process account.
The SSRF issue let attackers supply arbitrary HTTP/SSE MCP URLs and headers, enabling requests to loopback and private-network services, Docker sockets, Kubernetes APIs, databases, and cloud metadata endpoints such as 169.254.169.254, with possible exposure of temporary cloud credentials. Version 2.12.0 requires server-side named configuration for stdio MCP servers and adds explicit opt-in allowlisting, destination revalidation, sensitive-header filtering, and redirect blocking for user-provided HTTP/SSE connections. Organizations should upgrade promptly; where that is not immediately possible, disable MCP with features.mcp.enabled = false, enforce authentication, and block server egress to internal networks and cloud-metadata services.


