CVE-2026-47391: Unauthenticated code execution in PraisonAI A2A server example
CVE-2026-47391 affects PraisonAI before version 4.6.40. Its first-party Agent-to-Agent (A2A) server example exposes an unauthenticated JSON-RPC endpoint on all network interfaces and registers a calculate(expression) tool implemented using Python eval(). An attacker can submit a message/send request that reaches agent.chat() and induces the LLM to invoke the unsafe calculator, resulting in arbitrary Python execution in the server process. Execution was demonstrated using gemini/gemini-2.5-flash-lite. Affected deployments include those following the official A2A example and similar public, unauthenticated A2A deployments with unsafe tools. The unauthenticated interface also exposes task history and task cancellation APIs.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits arbitrary Python code execution in the server process, with the permissions available to that process. Testing confirmed attacker-directed execution through creation of a marker file. Unauthenticated access to task history and task cancellation APIs additionally exposes task information and permits interference with task execution. Exploitation has also been observed using audit-style natural-language framing to induce the victim agent to invoke the calculator with a reverse-shell payload.
Mitigation
If you can’t patch tonight, do this now.
If immediate patching is not possible, disable or unpublish the vulnerable A2A server example, restrict network exposure of the A2A endpoint to trusted clients only, and require authentication in front of the A2A JSON-RPC interface. Remove the calculate(expression) tool or replace it with a safe parser that does not execute arbitrary Python expressions. Limit agent access to dangerous local capabilities and review other registered tools for prompt-reachable code execution or sensitive side effects.
Remediation
Patch, then assume compromise.
Upgrade PraisonAI to version 4.6.40 or later, which patches the vulnerability.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-47391 exploited in the wild?
- Yes. As of Oct 9, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2026-47391?
- Yes. As of Oct 9, 2026, Mallory has reports of a public exploit for CVE-2026-47391.
- Is there a patch for CVE-2026-47391?
- Upgrade PraisonAI to version 4.6.40 or later, which patches the vulnerability.
- How severe is CVE-2026-47391?
- CVE-2026-47391 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.5% (75th percentile) as of Oct 9, 2026.
Recent activity
5 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.