CVE-2026-47391: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in MervinPraison PraisonAI
CVE-2026-47391 is a critical remote code execution vulnerability in MervinPraison PraisonAI prior to version 4.6.40. The vulnerability arises from an unauthenticated JSON-RPC endpoint that exposes a tool using Python's eval(), allowing arbitrary code execution. This affects deployments using the official A2A example or similar unauthenticated configurations. The flaw also exposes task history and cancellation APIs, increasing confidentiality and integrity risks. Version 4.6.40 includes a patch for this issue.
AI Analysis
Technical Summary
PraisonAI versions before 4.6.40 include an unauthenticated A2A JSON-RPC endpoint bound to 0.0.0.0 that registers a 'calculate(expression)' tool implemented with Python eval(). An attacker can send unauthenticated requests to invoke this tool, resulting in arbitrary Python code execution in the server process. This was confirmed in testing with the gemini/gemini-2.5-flash-lite LLM by creating a marker file via an HTTP request. The default unauthenticated A2A interface also exposes task history and cancellation APIs, increasing the impact on confidentiality and integrity. The vulnerability is fixed in version 4.6.40.
Potential Impact
An unauthenticated remote attacker can achieve arbitrary code execution on the PraisonAI server process, leading to full confidentiality, integrity, and availability compromise. The exposure of task history and cancellation APIs further increases the risk of sensitive information disclosure and unauthorized task manipulation.
Mitigation Recommendations
Version 4.6.40 of PraisonAI patches this vulnerability. Users should upgrade to version 4.6.40 or later. Deployments following the official A2A example or similar unauthenticated public A2A configurations should be considered vulnerable until upgraded. No official temporary fixes or workarounds are documented; upgrading is the recommended remediation.
CVE-2026-47391: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in MervinPraison PraisonAI
Description
CVE-2026-47391 is a critical remote code execution vulnerability in MervinPraison PraisonAI prior to version 4.6.40. The vulnerability arises from an unauthenticated JSON-RPC endpoint that exposes a tool using Python's eval(), allowing arbitrary code execution. This affects deployments using the official A2A example or similar unauthenticated configurations. The flaw also exposes task history and cancellation APIs, increasing confidentiality and integrity risks. Version 4.6.40 includes a patch for this issue.
CVSS v3.1
Score 9.8critical
Affected software
pkg:github/mervinpraison/PraisonAIRun 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
PraisonAI versions before 4.6.40 include an unauthenticated A2A JSON-RPC endpoint bound to 0.0.0.0 that registers a 'calculate(expression)' tool implemented with Python eval(). An attacker can send unauthenticated requests to invoke this tool, resulting in arbitrary Python code execution in the server process. This was confirmed in testing with the gemini/gemini-2.5-flash-lite LLM by creating a marker file via an HTTP request. The default unauthenticated A2A interface also exposes task history and cancellation APIs, increasing the impact on confidentiality and integrity. The vulnerability is fixed in version 4.6.40.
Potential Impact
An unauthenticated remote attacker can achieve arbitrary code execution on the PraisonAI server process, leading to full confidentiality, integrity, and availability compromise. The exposure of task history and cancellation APIs further increases the risk of sensitive information disclosure and unauthorized task manipulation.
Mitigation Recommendations
Version 4.6.40 of PraisonAI patches this vulnerability. Users should upgrade to version 4.6.40 or later. Deployments following the official A2A example or similar unauthenticated public A2A configurations should be considered vulnerable until upgraded. No official temporary fixes or workarounds are documented; upgrading is the recommended remediation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-05-19T19:22:45.729Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a5f96f22a4a8d59895fb2d1
Added to database: 07/21/2026, 15:57:38 UTC
Last enriched: 07/30/2026, 05:16:25 UTC
Last updated: 08/28/2026, 22:52:11 UTC
Views: 52
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.