Command Injection Affecting praisonaiagents package, versions [,1.5.125)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.23% (14th 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 Learn

Learn about Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PRAISONAIAGENTS-15993075
  • published12 Apr 2026
  • disclosed10 Apr 2026
  • creditg0w6y ⳕⲛτⲉⲅⲥⲉⳏτⲟⲅ

Introduced: 10 Apr 2026

CVE-2026-40111  (opens in a new tab)
CWE-78  (opens in a new tab)

How to fix?

Upgrade praisonaiagents to version 1.5.125 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 Command Injection in the subprocess.run function due to passing user-controlled input directly to the shell with shell=True and without any sanitization or validation. An attacker can execute arbitrary operating system commands with the privileges of the running process by injecting malicious payloads into the hooks configuration, such as .praisonai/hooks.json, which are then executed automatically during agent lifecycle events.

Note: This is only exploitable if an attacker can write to the project workspace and modify the hooks configuration file.

CVSS Base Scores

version 4.0
version 3.1