# CVE-2026-62176: MervinPraison PraisonAI code injection in deploy/api.py

Source: https://junglewise.ai/threats/cve-2026-61444-mervinpraison-praisonai-code-injection-in-deploy-api-py  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-07-10. Updated: 2026-07-10  
License: CC BY 4.0 with a link back

CVE-2026-62176 · Severity: critical · CVSS 9.1 · Published 2026-07-10

PraisonAI, an AI agent framework, contains a security flaw in its deployment module. An attacker with high-level access can inject malicious commands into the system's configuration files. If exploited, this allows the attacker to take full control of the server running the AI agents, potentially leading to data theft or complete service disruption.

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

## Quick answers

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

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

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

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

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

**Am I affected by CVE-2026-62176?** Check whether you run 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.6.78 or later

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


## Technical details

A code injection vulnerability exists in PraisonAI's deployment logic (specifically `deploy/api.py` and `deploy/docker.py`). The root cause is the direct interpolation of the `agents_file` parameter into Python f-strings used to generate server code and Dockerfiles. Because this input is not sanitized, an attacker with the ability to modify configuration or provide CLI arguments can break out of the string context to execute arbitrary Python code. The injected code is executed when the framework calls `subprocess.Popen()` to run the generated server file. This vulnerability requires high privileges (PR:H) but allows for a full scope escape (S:C), granting the attacker complete control over the underlying host. A fix is available in version 4.6.78.

## Affected products

- MervinPraison PraisonAI < 4.6.78

## Identifiers

- CVE-2026-62176
- CVE-2026-61444
- GHSA-g6j7-pffp-8whg
- PYSEC-2026-4256

## Timeline

- 2026-06-25: advisory: Vendor published security advisory GHSA-g6j7-pffp-8whg
- 2026-07-10: disclosed: CVE-2026-61444 published to NVD

## References

- [https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g6j7-pffp-8whg](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-g6j7-pffp-8whg)
- [https://www.vulncheck.com/advisories/praisonai-before-code-injection-via-f-string](https://www.vulncheck.com/advisories/praisonai-before-code-injection-via-f-string)

## 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)
