---
id: CVE-2026-57138
title: PraisonAI is a multi-agent teams system
summary: >-
  PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, codeMode in
  src/praisonai-ts/src/tools/builtins/code-mode.ts executes untrusted JavaScript
  with new Function() inside with(sandbox) and relies on a small source-code
  blockl…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-184
  - CWE-693
vendor: MervinPraison
product: PraisonAI
affected:
  - 'PraisonAI >= 1.4.0, < 1.7.2'
published: '2026-09-15'
updated: '2026-09-17'
sourceUpdated: '2026-09-17T14:17:14.627'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-57138'
references:
  - url: >-
      https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27
    label: security-advisories@github.com
  - url: 'https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60'
    label: security-advisories@github.com
  - url: >-
      https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fjwp
    label: security-advisories@github.com
  - url: >-
      https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fjwp
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
epss: 0.00726
epssPercentile: 0.52151
ingestedAt: '2026-09-15T10:35:28.520Z'
---

## Overview

PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, codeMode in src/praisonai-ts/src/tools/builtins/code-mode.ts executes untrusted JavaScript with new Function() inside with(sandbox) and relies on a small source-code blocklist plus shadowed process and require properties. Code can use ({}).constructor.constructor to recover the real Function constructor, obtain process and process.mainModule.require, and reach host filesystem and subprocess APIs despite the advertised sandbox. Attackers who control codeMode input can read secrets, modify files, execute commands, or exhaust the host process. This issue is fixed in version 1.7.2.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
