# CVE-2026-34935: MervinPraison PraisonAI OS command injection in MCPHandler

Source: https://junglewise.ai/threats/cve-2026-34935-mervinpraison-praisonai-os-command-injection-in-mcphandler  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-03. Updated: 2026-07-25  
License: CC BY 4.0 with a link back

CVE-2026-34935 · Severity: critical · CVSS 9.8 · Published 2026-04-03

PraisonAI, a framework for managing multi-agent AI teams, contains a security flaw that allows for unauthorized remote command execution. By providing a specially crafted input to the system's command-line interface, an attacker can take full control of the underlying server. This could lead to the theft of sensitive data, complete system takeover, or disruption of AI operations.

Technologies: [Praisonai](https://junglewise.ai/threats/technologies/praisonai), [praisonai (PyPI)](https://junglewise.ai/threats/technologies/pypi-praisonai). Vendors: [Praison](https://junglewise.ai/threats/vendors/praison), [PyPI](https://junglewise.ai/threats/vendors/pypi).

## Quick answers

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

**How severe is CVE-2026-34935?** Critical severity, with a CVSS score of 9.8, published 3 April 2026.

**Which products and versions are affected?** praisonai (PyPI) ECOSYSTEM:introduced=4.5.15,fixed=4.5.69.

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

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

**Am I affected by CVE-2026-34935?** Check whether you run Praisonai or praisonai (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

- praisonai (PyPI): upgrade to 4.5.69 or later

  ```sh
  pip install "praisonai>=4.5.69"
  ```


## Technical details

An OS command injection vulnerability exists in PraisonAI's MCPHandler component. The root cause is the lack of sanitization or validation of the `--mcp` command-line argument, which is passed through `shlex.split()` and eventually reaches the `anyio.open_process()` sink. An attacker can exploit this by supplying shell commands (e.g., using `bash -c`) within the `--mcp` argument. This allows for arbitrary code execution with the privileges of the user running the PraisonAI process. The vulnerability is reachable over the network if the CLI arguments are influenced by untrusted input. The issue is resolved in version 4.5.69 by implementing a command allowlist (restricting execution to npx, uvx, node, and python).

## Affected products

- MervinPraison PraisonAI >= 4.5.15, < 4.5.69

## Identifiers

- CVE-2026-34935
- GHSA-9gm9-c8mq-vq7m
- PYSEC-2026-471

## Timeline

- 2026-03-31: advisory: Original GitHub Security Advisory published
- 2026-04-03: disclosed: CVE published to NVD
- 2026-04-03: patched: Fix released in version 4.5.69

## References

- [https://github.com/MervinPraison/PraisonAI/commit/47bff65413beaa3c21bf633c1fae4e684348368c](https://github.com/MervinPraison/PraisonAI/commit/47bff65413beaa3c21bf633c1fae4e684348368c)
- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9gm9-c8mq-vq7m](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-9gm9-c8mq-vq7m)

## Related threats

- [PraisonAI authentication bypass in A2U event streaming](https://junglewise.ai/threats/cve-2026-57146-praisonai-a2u-incomplete-authentication-fix-leaves-current-serve)
- [PraisonAI sandbox escape when Landlock unavailable](https://junglewise.ai/threats/cve-2026-57144-praisonai-sandlocksandbox-falls-back-to-unrestricted-subprocess)
- [PraisonAI recipe policy bypass via YAML-approved tools](https://junglewise.ai/threats/cve-2026-57142-praisonai-recipe-workflow-policy-can-be-bypassed-by-declaring-and)
- [PraisonAI shell command injection in compute-bridged file tools](https://junglewise.ai/threats/cve-2026-57117-praisonai-compute-bridged-file-tools-allow-shell-command)
- [PraisonAI AgentOS authentication bypass in FastAPI deployment](https://junglewise.ai/threats/cve-2026-57116-praisonai-agentos-remains-unauthenticated-after-incomplete-fix)
