CVE-2026-40153: CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable in MervinPraison PraisonAIAgents
PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, the execute_command function in shell_tools.py calls os.path.expandvars() on every command argument at line 64, manually re-implementing shell-level environment variable expansion despite using shell=False (line 88) for security. This allows exfiltration of secrets stored in environment variables (database credentials, API keys, cloud access keys). The approval system displays the unexpanded $VAR references to human reviewers, creating a deceptive approval where the displayed command differs from what actually executes. This vulnerability is fixed in 1.5.128.
AI Analysis
Technical Summary
PraisonAIAgents before version 1.5.128 contains a vulnerability (CWE-526) where the execute_command function uses os.path.expandvars() on command arguments, manually expanding environment variables despite the subprocess call using shell=False. This behavior can leak sensitive information stored in environment variables because the approval interface displays unexpanded variable names, misleading reviewers about the actual commands executed. This discrepancy enables exfiltration of secrets such as database credentials, API keys, and cloud access keys. The vulnerability has a CVSS 3.1 score of 7.4 (high severity) and is resolved in version 1.5.128.
Potential Impact
An attacker or user able to influence command arguments can cause secrets stored in environment variables to be exposed and potentially exfiltrated. The approval system's display of unexpanded variables creates a deceptive approval process, increasing the risk of unnoticed secret leakage. There is no indication of impact on integrity or availability, but confidentiality is highly impacted.
Mitigation Recommendations
Upgrade PraisonAIAgents to version 1.5.128 or later, where this vulnerability is fixed. Since no official patch links or advisories are provided, verify the update from the vendor's official release notes. Avoid using affected versions in production environments until patched.
CVE-2026-40153: CWE-526: Cleartext Storage of Sensitive Information in an Environment Variable in MervinPraison PraisonAIAgents
Description
PraisonAIAgents is a multi-agent teams system. Prior to 1.5.128, the execute_command function in shell_tools.py calls os.path.expandvars() on every command argument at line 64, manually re-implementing shell-level environment variable expansion despite using shell=False (line 88) for security. This allows exfiltration of secrets stored in environment variables (database credentials, API keys, cloud access keys). The approval system displays the unexpanded $VAR references to human reviewers, creating a deceptive approval where the displayed command differs from what actually executes. This vulnerability is fixed in 1.5.128.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAIAgents before version 1.5.128 contains a vulnerability (CWE-526) where the execute_command function uses os.path.expandvars() on command arguments, manually expanding environment variables despite the subprocess call using shell=False. This behavior can leak sensitive information stored in environment variables because the approval interface displays unexpanded variable names, misleading reviewers about the actual commands executed. This discrepancy enables exfiltration of secrets such as database credentials, API keys, and cloud access keys. The vulnerability has a CVSS 3.1 score of 7.4 (high severity) and is resolved in version 1.5.128.
Potential Impact
An attacker or user able to influence command arguments can cause secrets stored in environment variables to be exposed and potentially exfiltrated. The approval system's display of unexpanded variables creates a deceptive approval process, increasing the risk of unnoticed secret leakage. There is no indication of impact on integrity or availability, but confidentiality is highly impacted.
Mitigation Recommendations
Upgrade PraisonAIAgents to version 1.5.128 or later, where this vulnerability is fixed. Since no official patch links or advisories are provided, verify the update from the vendor's official release notes. Avoid using affected versions in production environments until patched.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-09T19:31:56.013Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69d843771cc7ad14da3fb5cf
Added to database: 4/10/2026, 12:25:27 AM
Last enriched: 4/17/2026, 12:02:43 PM
Last updated: 5/25/2026, 6:14:42 AM
Views: 81
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.