---
title: "CVE-2026-57141: PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool"
url: https://erroneo.us/security/cve/CVE-2026-57141/
description: "CVE-2026-57141 (praisonai (npm)): PraisonAI is a multi-agent teams system. Prior to 1.7.2, the codeMode tool in…"
type: vulnerability-record
section: "Security Digest"
date_published: 2026-09-15
date_modified: 2026-09-15
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2026-57141"
kev: false
cvss: 9.8
epss: 0.00745
license: All rights reserved. Quote with attribution and a link.
---

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

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- No confirmed exploitation. It is not in CISA’s KEV catalog and CISA’s SSVC assessment records no known exploitation. That can change quickly after a public write-up; re-check if you are affected.
- EPSS 0.7% , percentile 54: FIRST’s model estimates a 0.7% chance of exploitation activity in the next 30 days, higher than 54% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes praisonai (npm) <= 1.7.1, fixed in 1.7.2 . Check your lockfile, including transitive dependencies.

## What it is

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 childprocess 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.

## Affected packages

- npm `praisonai` <= 1.7.1 → fixed: 1.7.2

## Affected products (CVE record)

- MervinPraison PraisonAI: < 1.7.2

## Severity

- GitHub_M CVSS 3.1: 9.8 `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 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation none , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.74% probability of exploitation activity in the next 30 days; percentile 54.

## Sources

- [GitHub Advisory GHSA-p69m-4f92-2v84](https://github.com/advisories/GHSA-p69m-4f92-2v84)
- [CVE.org record CVE-2026-57141](https://www.cve.org/CVERecord?id=CVE-2026-57141)
- [NVD entry CVE-2026-57141](https://nvd.nist.gov/vuln/detail/CVE-2026-57141)
- [github.com](https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p69m-4f92-2v84)
- [github.com](https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27)
- [github.com](https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60)

---
Source page: https://erroneo.us/security/cve/CVE-2026-57141/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
