CVE-2026-40159: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in MervinPraison PraisonAI
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.
AI Analysis
Technical Summary
PraisonAI's MCP integration prior to version 4.5.128 allows spawning background servers using user-supplied command strings executed through Python's subprocess module. The subprocess inherits all environment variables from the parent process, including sensitive credentials. When MCP commands invoke external tools (e.g., via 'npx -y'), arbitrary code from external or compromised packages may execute with access to these environment variables, risking exposure of secrets and enabling supply chain attacks. This vulnerability is addressed in PraisonAI version 4.5.128.
Potential Impact
The vulnerability can lead to exposure of sensitive information such as API keys, authentication tokens, and database credentials to unauthorized actors if untrusted MCP commands are executed. This may facilitate supply chain attacks through silent exfiltration of secrets. The CVSS score of 5.5 indicates a medium severity impact, with confidentiality affected but no impact on integrity or availability.
Mitigation Recommendations
Upgrade PraisonAI to version 4.5.128 or later, where this vulnerability is fixed. Until then, avoid executing untrusted or third-party MCP commands that could inherit sensitive environment variables. Patch status is not explicitly stated beyond the fix in 4.5.128; therefore, check the vendor advisory for the latest remediation guidance.
CVE-2026-40159: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in MervinPraison PraisonAI
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI's MCP integration prior to version 4.5.128 allows spawning background servers using user-supplied command strings executed through Python's subprocess module. The subprocess inherits all environment variables from the parent process, including sensitive credentials. When MCP commands invoke external tools (e.g., via 'npx -y'), arbitrary code from external or compromised packages may execute with access to these environment variables, risking exposure of secrets and enabling supply chain attacks. This vulnerability is addressed in PraisonAI version 4.5.128.
Potential Impact
The vulnerability can lead to exposure of sensitive information such as API keys, authentication tokens, and database credentials to unauthorized actors if untrusted MCP commands are executed. This may facilitate supply chain attacks through silent exfiltration of secrets. The CVSS score of 5.5 indicates a medium severity impact, with confidentiality affected but no impact on integrity or availability.
Mitigation Recommendations
Upgrade PraisonAI to version 4.5.128 or later, where this vulnerability is fixed. Until then, avoid executing untrusted or third-party MCP commands that could inherit sensitive environment variables. Patch status is not explicitly stated beyond the fix in 4.5.128; therefore, check the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T19:31:56.014Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d9d9751cc7ad14da3f871d
Added to database: 4/11/2026, 5:17:41 AM
Last enriched: 4/11/2026, 5:19:10 AM
Last updated: 4/11/2026, 1:44:18 PM
Views: 6
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.