Skip to main content
Mallory
CriticalPublic exploitVulnerability

CVE-2026-45018: Chainlit MCP Stdio Command Injection

Published Aug 25, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS9.8Critical · v3.1
EPSS1.1%66th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2026-45018CWE-78 · Improper Neutralization of Special…

CVE-2026-45018 is a critical OS command-injection vulnerability in Chainlit versions 2.4.0rc0 through 2.11.x. When MCP is enabled, an unauthenticated MCP connection could supply a complete command string for a stdio-backed server. Chainlit parsed the command but validated only the executable basename against the configured executable allowlist; all subsequent arguments were passed unchecked to subprocess creation. An omitted allowlist was interpreted as permitting all local executables. Even with an allowlist, dual-use programs such as npx could be invoked with command-execution arguments, resulting in arbitrary shell-command execution. Chainlit 2.12.0 removes client control of stdio command strings and instead requires server-side declaration of MCP servers.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

An unauthenticated remote attacker able to reach the MCP service can execute arbitrary operating-system commands with the privileges of the Chainlit process. This can result in complete compromise of the application host within that process's security context, including access to application data and secrets, modification or destruction of data, persistent payload installation, and use of the host to pivot into connected internal networks.

Mitigation

If you can’t patch tonight, do this now.

If immediate upgrading is not possible, disable MCP by setting features.mcp.enabled to false. Apply authentication to MCP access to remove the unauthenticated attack path, while recognizing that authentication does not correct the injection flaw for authenticated attackers. Constrain the Chainlit process using least privilege, prevent unnecessary process execution, and restrict outbound network connectivity to limit post-exploitation impact.

Remediation

Patch, then assume compromise.

Upgrade Chainlit to version 2.12.0 or later. The fixed design removes client-supplied stdio command selection and requires MCP servers to be explicitly defined in server-side configuration, with clients selecting only a configured server by name. Migrate legacy MCP configuration, including stdio executable-allowlist settings, before re-enabling MCP because legacy settings are incompatible with the updated configuration model.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

Frequently asked questions

Is CVE-2026-45018 exploited in the wild?
As of Sep 25, 2026, Mallory has no reports of CVE-2026-45018 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-45018?
Yes. As of Sep 25, 2026, Mallory has reports of a public exploit for CVE-2026-45018.
Is there a patch for CVE-2026-45018?
Upgrade Chainlit to version 2.12.0 or later. The fixed design removes client-supplied stdio command selection and requires MCP servers to be explicitly defined in server-side configuration, with clients selecting only a configured server by name.
How severe is CVE-2026-45018?
CVE-2026-45018 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.1% (66th percentile) as of Sep 25, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity7Community discussion across Reddit, Mastodon, and other social sources.