Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. chainlit
  4. ›
  5. CVE-2026-45018

CVE-2026-45018: Chainlit has command injection via MCP stdio transport that allows unauthenticated remote code execution

August 25, 2026

When MCP is enabled (features.mcp.enabled = true), the POST /mcp endpoint for stdio transport accepts a user-controlled fullCommand string. The validate_mcp_command() function checks the executable name against a configurable allowlist but does not inspect or restrict the arguments. An attacker can pass npx -y -c 'ARBITRARY COMMAND' to execute arbitrary shell commands on the server with the privileges of the Chainlit process.

References

  • github.com/Chainlit/chainlit/commit/0565fd0eccb915fce159929598b053ed79f6e0c9
  • github.com/Chainlit/chainlit/releases/tag/2.12.0
  • github.com/Chainlit/chainlit/security/advisories/GHSA-w3fx-mc44-mf6j
  • github.com/advisories/GHSA-w3fx-mc44-mf6j
  • nvd.nist.gov/vuln/detail/CVE-2026-45018

Code Behaviors & Features

Detect and mitigate CVE-2026-45018 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 2.4.0-rc.0 before 2.12.0

Fixed versions

  • 2.12.0

Solution

Upgrade to version 2.12.0 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

pypi/chainlit/CVE-2026-45018.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:02 +0000.