CVE-2026-40159

Medium

Description

PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI’s MCP (Model Context Protocol) integration allows spawning background servers via stdio using user-supplied command strings (e.g., MCP("npx -y @smithery/cli ...")). These commands are executed through Python’s subprocess module. By default, the implementation forwards the entire parent process environment to the spawned subprocess. As a result, any MCP command executed in this manner inherits all environment variables from the host process, including sensitive data such as API keys, authentication tokens, and database credentials. This behavior introduces a security risk when untrusted or third-party commands are used. In common scenarios where MCP tools are invoked via package runners such as npx -y, arbitrary code from external or potentially compromised packages may execute with access to these inherited environment variables. This creates a risk of unintended credential exposure and enables potential supply chain attacks through silent exfiltration of secrets. This vulnerability is fixed in 4.5.128.

SeverityMedium
CVSS5.5
Exploit probability—
ProductPraisonai
PublishedApr 10, 2026
First seenApr 10, 2026

How to fix

Update
  • praison praisonai4.5.128 or later
  • praisonai4.5.128 or later

Affected products

ProductAffected versionsFixed in
praison praisonaiv < 4.5.1284.5.128
praisonaiPyPIv < 4.5.1284.5.128

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-40159 · Praisonai · Dark Radar