CVE-2026-57138CWE-184CWE-693

CVE-2026-57138

Critical · published September 15, 2026

CVSS v3.1
9.9
EPSS
1%
Percentile
53.6
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.9 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00726 · 53.6th percentile
Weaknesses
CWE-184 · Incomplete List of Disallowed Inputs; CWE-693 · Protection Mechanism Failure
Published
2026-09-15T15:17Z
References (4)
EPSS history
Timeline
  • 17 SEP 03:31Z
    EPSS moved — → 0%
    epss
  • 15 SEP 10:22Z
    PraisonAI codeMode sandbox escape via Function constructor
    cvelistv5