Exposure of Sensitive Information Through Environmental Variables Affecting praisonai package, versions [,4.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.03% (10th 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-PRAISONAI-15992416
  • published12 Apr 2026
  • disclosed10 Apr 2026
  • creditoffset

Introduced: 10 Apr 2026

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

How to fix?

Upgrade PraisonAI to version 4.5.135 or higher.

Overview

PraisonAI is a PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration.

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