# PraisonAI: CodeAgent Executes LLM-Generated Code Without Sandboxing and Leaks All Environment Secrets

Advisory record · `GHSA-2xv2-w8cq-5gxw`

- **Identifiers:** `GHSA-2xv2-w8cq-5gxw` · `CVE-2026-61447` · `PYSEC-2026-4266`
- **State:** Confirmed
- **Severity:** CVSS 10.0 Critical
- **Critical:** Yes: CVSS 9+, CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-94](https://cwe.mitre.org/data/definitions/94.html) · [CWE-200](https://cwe.mitre.org/data/definitions/200.html)
- **Tags:** [Code injection](https://agentprime.io/advisories/tag/code-injection.md) · [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md)
- **Published:** 8 Oct 2026
- **Updated:** 15 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 8 Oct 2026, 16:44 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 10.0: 9.0 or more.
- CVSS score 10.0 (7.0 or more) and EPSS 0.15 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `praisonaiagents` (PyPI): affected `<1.6.78`; fixed in `1.6.78`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> PraisonAI (praisonaiagents on PyPI) versions before 1.6.78 are affected. The CodeAgent executes LLM-generated Python in a subprocess that inherits the full parent environment, with no AST validation, import restrictions, or working sandbox even when sandbox=True is set. An attacker who can influence the LLM's output, such as through prompt injection in agent input or tool results, can read environment secrets like API keys and database credentials and run arbitrary code on the host. Upgrade to praisonaiagents 1.6.78 or later.

Written 1 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 10.0 Critical, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`, from CNA (VulnCheck)

- **CISA KEV:** Not listed.
- **EPSS:** 0.15, the 96th percentile, on 8 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:08 UTC: First seen by agentprime
- 31 Oct 2026, 14:08 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-2xv2-w8cq-5gxw)

## Sources

- [GitHub Advisory Database: GHSA-2xv2-w8cq-5gxw](https://github.com/advisories/GHSA-2xv2-w8cq-5gxw)
- [OSV: GHSA-2xv2-w8cq-5gxw](https://osv.dev/vulnerability/GHSA-2xv2-w8cq-5gxw)
- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-2xv2-w8cq-5gxw>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-61447>
- <https://github.com/MervinPraison/PraisonAI>
- <https://www.vulncheck.com/advisories/praisonai-before-remote-code-execution-via-codeagent>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-2xv2-w8cq-5gxw>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2xv2-w8cq-5gxw/>. Everything for agents: <https://agentprime.io/llms.txt>.
