CVE-2026-57138MervinPraison PraisonAI
Arbitrary JavaScript code execution in PraisonAI via sandbox escape
Critical 9.9
Follow: this CVE · MervinPraison · MervinPraison PraisonAI We alert you by email or Slack (account required).
- Priority
- 59
- CVSS 3.1
- 9.9
- EPSS
- —
- Auth required
- Yes
- Published
- Sep 15, 2026
- Updated
- Sep 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
What happens
PraisonAI versions 1.4.0 through 1.7.1 contain a vulnerability in code mode that allows executing untrusted JavaScript. An authenticated attacker can bypass the sandbox using the Function constructor to access the filesystem, execute commands, and obtain host secrets.
Show the original NVD text
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.
What to do
Patch available · fixed versions: 1.7.2
Update PraisonAI to version 1.7.2 or later to apply the security patch.
- Apply the vendor's security update for PraisonAI.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | praisonai |
≥ 1.4.0 < 1.7.2 |
1.7.2 |
npm install praisonai@1.7.2 |
Per OSV / GitHub Advisories (GHSA-vmmj-pfw7-fjwp). Check the version in your lockfile before upgrading.
Affected products
- MervinPraison · PraisonAI
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.