# CVE-2026-61447: MervinPraison PraisonAI remote code execution in CodeAgent

Source: https://junglewise.ai/threats/cve-2026-61447-mervinpraison-praisonai-remote-code-execution-in-codeagent  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-11. Updated: 2026-07-11  
License: CC BY 4.0 with a link back

CVE-2026-61447 · Severity: critical · CVSS 10 · Published 2026-07-11

PraisonAI is an AI agent framework used to automate tasks using Large Language Models (LLMs). A vulnerability in its code execution component allows the AI to run arbitrary Python code on the host system without any security restrictions or sandboxing. An attacker could use prompt injection to trick the AI into stealing sensitive information like API keys and database passwords, or to take full control of the server running the application.

Technologies: [praisonaiagents (PyPI)](https://junglewise.ai/threats/technologies/pypi-praisonaiagents). Vendors: [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

**Is CVE-2026-61447 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-61447 being exploited in the wild.

**How severe is CVE-2026-61447?** Critical severity, with a CVSS score of 10, published 11 July 2026.

**Which products and versions are affected?** praisonaiagents (PyPI) <= 1.6.77, ECOSYSTEM:introduced=0,fixed=1.6.78.

**Is there a fix for CVE-2026-61447?** Yes. praisonaiagents (PyPI): upgrade to 1.6.78 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-61447 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-61447?** Check whether you run praisonaiagents (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- praisonaiagents (PyPI): upgrade to 1.6.78 or later

  ```sh
  pip install "praisonaiagents>=1.6.78"
  ```


## Technical details

A remote code execution (RCE) vulnerability exists in the `CodeAgent._execute_python()` method of PraisonAI. The component executes LLM-generated Python code in a subprocess using `os.environ.copy()`, which exposes the entire parent process environment (including sensitive API keys and credentials) to the generated code. Furthermore, the implementation lacks Abstract Syntax Tree (AST) validation, import restrictions, and fails to enforce sandboxing even when explicitly configured. An attacker can exploit this via prompt injection to execute arbitrary system commands or exfiltrate environment variables. The issue is addressed in version 1.6.78.

## Affected products

- MervinPraison PraisonAI < 1.6.78

## Identifiers

- CVE-2026-61447
- GHSA-2xv2-w8cq-5gxw
- PYSEC-2026-4266

## Timeline

- 2026-06-25: advisory: GitHub Security Advisory published by maintainer
- 2026-07-11: disclosed: CVE published to NVD

## References

- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-2xv2-w8cq-5gxw](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-2xv2-w8cq-5gxw)
- [https://www.vulncheck.com/advisories/praisonai-before-remote-code-execution-via-codeagent](https://www.vulncheck.com/advisories/praisonai-before-remote-code-execution-via-codeagent)

## Related threats

- [PraisonAI SearxNG URL validation bypass in search tools](https://junglewise.ai/threats/cve-2026-57143-praisonai-server-side-request-forgery-ssrf-in-searxng-search-web)
- [PraisonAI missing access control in API endpoints](https://junglewise.ai/threats/cve-2026-57118-praisonai-agentteam-launch-exposes-unauthenticated-remote-agent)
- [PraisonAI legacy SSE endpoint CORS and authentication bypass](https://junglewise.ai/threats/cve-2026-57112-praisonai-legacy-sse-endpoint-cors-and-authentication-bypass)
- [PraisonAI IMAP injection in email tools](https://junglewise.ai/threats/cve-2026-57130-praisonai-imap-injection-in-email-tools)
- [PraisonAI path traversal in file mention parsing](https://junglewise.ai/threats/cve-2026-57129-praisonai-path-traversal-in-file-mention-parsing)
