Exposure of Sensitive Information Through Environmental Variables Affecting praisonaiagents package, versions [,1.5.135)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.27% (19th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PYTHON-PRAISONAIAGENTS-15992415
  • published12 Apr 2026
  • disclosed10 Apr 2026
  • creditoffset

Introduced: 10 Apr 2026

CVE-2026-40153  (opens in a new tab)
CWE-526  (opens in a new tab)

How to fix?

Upgrade praisonaiagents to version 1.5.135 or higher.

Overview

praisonaiagents is a Praison AI agents for completing complex tasks with Self Reflection Agents

Affected versions of this package are vulnerable to Exposure of Sensitive Information Through Environmental Variables in the execute_command function, where environment variables within command arguments and the cwd parameter are expanded using os.path.expandvars before execution. An attacker can obtain sensitive environment variable values, such as database credentials or API keys, by crafting commands that reference these variables. This can be achieved through prompt injection or by submitting commands for approval that appear benign but result in secret exfiltration upon execution.

Note: This is only exploitable if the approval system is bypassed or misleads reviewers by displaying unexpanded variables, or if automated approval is enabled via the PRAISONAI_AUTO_APPROVE environment variable.

CVSS Base Scores

version 4.0
version 3.1