Live threats

All CVEs / MervinPraison

CVE-2026-57138MervinPraison PraisonAI

Arbitrary JavaScript code execution in PraisonAI via sandbox escape

Critical 9.9

Priority
59
CVSS 3.1
9.9
EPSS
—
Auth required
Yes
Published
Sep 15, 2026
Updated
Sep 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-184, CWE-693
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.

Source text, unmodified. NVD.

What to do

Patch available · fixed versions: 1.7.2

Update PraisonAI to version 1.7.2 or later to apply the security patch.

Vendor advisory · github.com ↗

  1. Apply the vendor's security update for PraisonAI.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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

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.