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. By default, the subprocess inherits all environment variables from the parent process, including sensitive information such as API keys, authentication tokens, and database credentials. This behavior creates a risk when untrusted or third-party commands are executed, as they gain access to these sensitive environment variables. The vulnerability can lead to exposure of sensitive information and potential supply chain attacks via silent exfiltration of secrets. The issue is resolved in PraisonAI version 4.5.128.
Potential Impact
The vulnerability exposes sensitive environment variables to subprocesses spawned by user-supplied commands, potentially leaking API keys, authentication tokens, and database credentials. This exposure can lead to unauthorized access to sensitive information and enable supply chain attacks through compromised or malicious third-party packages. The CVSS score of 5.5 reflects a medium severity impact, primarily confidentiality loss without direct integrity or availability impact.
Mitigation Recommendations
A fix for this vulnerability is available in PraisonAI version 4.5.128. Users should upgrade to version 4.5.128 or later to remediate the issue. Until the upgrade is applied, avoid executing untrusted or third-party MCP commands that could inherit sensitive environment variables. Patch status is not explicitly stated beyond the version fix; therefore, verify 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. By default, the subprocess inherits all environment variables from the parent process, including sensitive information such as API keys, authentication tokens, and database credentials. This behavior creates a risk when untrusted or third-party commands are executed, as they gain access to these sensitive environment variables. The vulnerability can lead to exposure of sensitive information and potential supply chain attacks via silent exfiltration of secrets. The issue is resolved in PraisonAI version 4.5.128.
Potential Impact
The vulnerability exposes sensitive environment variables to subprocesses spawned by user-supplied commands, potentially leaking API keys, authentication tokens, and database credentials. This exposure can lead to unauthorized access to sensitive information and enable supply chain attacks through compromised or malicious third-party packages. The CVSS score of 5.5 reflects a medium severity impact, primarily confidentiality loss without direct integrity or availability impact.
Mitigation Recommendations
A fix for this vulnerability is available in PraisonAI version 4.5.128. Users should upgrade to version 4.5.128 or later to remediate the issue. Until the upgrade is applied, avoid executing untrusted or third-party MCP commands that could inherit sensitive environment variables. Patch status is not explicitly stated beyond the version fix; therefore, verify 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/18/2026, 2:05:04 PM
Last updated: 5/26/2026, 3:41:08 PM
Views: 111
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.