CVE-2026-61437

High

Description

PraisonAI (pip package praisonaiagents) before 1.6.78 contains an unsafe dynamic module loading vulnerability in AgentFlow._resolve_pydantic_class (src/praisonai-agents/praisonaiagents/workflows/workflows.py). When a workflow step uses a string output_pydantic reference, the framework locates and imports a sibling tools.py from the workflow file's directory via importlib exec_module without sandboxing, ignoring the PRAISONAI_ALLOW_*_TOOLS environment variables. An attacker who controls a workflow file and its sibling tools.py can execute arbitrary Python code with the workflow runner's privileges when the workflow is executed via WorkflowManager or after load_yaml.

SeverityHigh
CVSS7.8
Exploit probability—
ProductPraisonaiagents
PublishedJul 10, 2026
First seenJul 10, 2026
Weakness typeCWE-693CWE-693

How to fix

Update
  • praisonaiagents1.6.78 or later

Affected products

ProductAffected versionsFixed in
praisonaiagentsPyPIv < 1.6.781.6.78

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.