CVE-2026-61437: Protection Mechanism Failure in MervinPraison PraisonAI
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.
AI Analysis
Technical Summary
CVE-2026-61437 describes a protection mechanism failure in MervinPraison's PraisonAI (pip package praisonaiagents) prior to version 1.6.78. The vulnerability arises in the AgentFlow._resolve_pydantic_class method, which dynamically loads a sibling tools.py module from the workflow file's directory using importlib.exec_module without sandboxing or honoring PRAISONAI_ALLOW_*_TOOLS environment variables. This unsafe dynamic module loading enables an attacker who controls both the workflow file and its sibling tools.py to execute arbitrary Python code with the privileges of the workflow runner when the workflow is executed via WorkflowManager or after load_yaml.
Potential Impact
An attacker with the ability to supply a malicious workflow file and a sibling tools.py can achieve arbitrary code execution with the workflow runner's privileges. This can lead to full compromise of the environment running PraisonAI workflows. The vulnerability requires local or limited access to supply workflow files but does not require prior privileges. The CVSS 4.0 score is 8.5 (high severity), reflecting the ease of exploitation and impact on confidentiality, integrity, and availability.
Mitigation Recommendations
No official patch or remediation has been confirmed at this time. Users should upgrade to PraisonAI version 1.6.78 or later once available, as this version presumably addresses the vulnerability. Until a fix is released, avoid running untrusted workflow files or restrict the ability to supply arbitrary workflow files and sibling tools.py modules. Monitor vendor advisories for updates and apply official fixes promptly.
CVE-2026-61437: Protection Mechanism Failure in MervinPraison PraisonAI
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.
CVSS v4.0
Score 8.5high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-61437 describes a protection mechanism failure in MervinPraison's PraisonAI (pip package praisonaiagents) prior to version 1.6.78. The vulnerability arises in the AgentFlow._resolve_pydantic_class method, which dynamically loads a sibling tools.py module from the workflow file's directory using importlib.exec_module without sandboxing or honoring PRAISONAI_ALLOW_*_TOOLS environment variables. This unsafe dynamic module loading enables an attacker who controls both the workflow file and its sibling tools.py to execute arbitrary Python code with the privileges of the workflow runner when the workflow is executed via WorkflowManager or after load_yaml.
Potential Impact
An attacker with the ability to supply a malicious workflow file and a sibling tools.py can achieve arbitrary code execution with the workflow runner's privileges. This can lead to full compromise of the environment running PraisonAI workflows. The vulnerability requires local or limited access to supply workflow files but does not require prior privileges. The CVSS 4.0 score is 8.5 (high severity), reflecting the ease of exploitation and impact on confidentiality, integrity, and availability.
Mitigation Recommendations
No official patch or remediation has been confirmed at this time. Users should upgrade to PraisonAI version 1.6.78 or later once available, as this version presumably addresses the vulnerability. Until a fix is released, avoid running untrusted workflow files or restrict the ability to supply arbitrary workflow files and sibling tools.py modules. Monitor vendor advisories for updates and apply official fixes promptly.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-07-09T14:05:47.928Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a51062d68715ace43b84ac9
Added to database: 07/10/2026, 14:48:13 UTC
Last enriched: 07/18/2026, 15:22:20 UTC
Last updated: 08/24/2026, 04:20:54 UTC
Views: 63
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.