cvedb.io
CVE-2026-40159
MEDIUM · CVSS 5.5
EPSS exploitation probability: 0%
Published 2026-04-10T17:17:13.763 · Last modified 2026-06-17T10:44:47.497

Summary

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

Affected products

praison — praisonai

Does this affect you?

Add your gear to cvedb and we'll alert you only when praison ships something exploited.

Check my exposure →

References

This product uses data from the NVD API but is not endorsed or certified by the NVD. Informational only; not professional security advice.