# CVE-2026-57141: PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool

- Severity: Critical 9.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-06-18T14:26:37.000Z
- Modified: 2026-09-15T14:45:28.563Z
- Also known as: GHSA-p69m-4f92-2v84
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

PraisonAI is a multi-agent teams system. Prior to 1.7.2, the codeMode tool in src/praisonai-ts/src/tools/builtins/code-mode.ts executes model-generated JavaScript with new Function() and with(sandbox), while a regular-expression blocklist can be bypassed with Function('return this')() to recover the global object and by constructing the child_process module name dynamically. An attacker who can influence the code argument can access host process capabilities, read or write files, obtain environment credentials, and execute operating-system commands with the PraisonAI process privileges. This issue is fixed in version 1.7.2.

(As written by CVE List.)

## Affected

- MervinPraison PraisonAI: < 1.7.2
- praisonai (npm): before 1.7.2

## Every score

- GitHub_M: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p69m-4f92-2v84> (web)
- <https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27>
- <https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60>
- <https://github.com/MervinPraison/PraisonAI> (package)

## Sources

- CVE List: [CVE-2026-57141](https://www.cve.org/CVERecord?id=CVE-2026-57141), CVE Terms of Use, modified 2026-09-15
- GitHub Advisory Database: [GHSA-p69m-4f92-2v84](https://github.com/advisories/GHSA-p69m-4f92-2v84), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-57141](https://nvd.nist.gov/vuln/detail/CVE-2026-57141), Public domain, modified 2026-09-15

---

Page: https://cve.day/CVE-2026-57141 · Whole record: https://cve.day/CVE-2026-57141.json · Rebuilt by cve.day 2026-11-25T22:59:38.500Z
