Vulnerability · Published Aug 5, 2026 · Assigned by GitHub_M

CVE-2026-55522PraisonAI workflow include bypasses tools.py autoload opt-in and executes included recipe code

High 7.8

In plain English

A high-severity code injection in PraisonAI from MervinPraison. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.8High
Exploit odds (30 days)0.2%top 86.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

PraisonAI is a multi-agent teams system. In versions 3.9.26 through 4.6.57 of praiseonai and 0.12.12 through 1.6.57 of praiseonaiagents, the workflow "include" feature is vulnerable to code execution. Workflow._execute_include() implicitly imports and runs an included recipe's tools.py via a raw importlib.util.spec_from_file_location() and spec.loader.exec_module() call, without honoring the PRAISONAI_ALLOW_TEMPLATE_TOOLS/PRAISONAI_ALLOW_LOCAL_TOOLS autoload opt-in gates or routing through the centralized safe loader that protects the other tools.py autoload paths. As a result, a workflow that includes an attacker-controlled local recipe directory executes arbitrary module-level Python code during include setup, before any child workflow parsing or model call, and the same sink is reachable through the higher-level praisonai.recipe.run() recipe API. An attacker who can cause a victim process to run a workflow or recipe that includes an untrusted local recipe achieves arbitrary Python code execution as the PraisonAI process user, a variant that bypasses the hardening applied to the previously disclosed automatic tools.py RCE advisory family. This issue has been fixed in version 4.6.58 of praisonai and 1.6.58 of praisonaiagents.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIpraisonai4.6.58GHSA-hxmv-c4g6-5fqc
PyPIpraisonai4.6.58PYSEC-2026-3891
PyPIpraisonaiagents1.6.58GHSA-hxmv-c4g6-5fqc
PyPIpraisonaiagents1.6.58PYSEC-2026-3903

Affected products (as reported)

VendorProductVersions
MervinPraison PraisonAI >= 3.9.26, < 4.6.58
MervinPraison praisonaiagents >= 0.12.12, < 1.6.58

Weakness: CWE-94, CWE-426, CWE-829 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

References