PraisonAI is a multi-agent teams system. From 1.4.0 until 1.7.2, codeMode in…
Historical advisory recorded 25 Oct 2026 14:19:10 UTC. Read the latest advisory.
nvd · CVE-2026-57138
PublishedPraisonAI 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.
Read the publisher's advisoryAffected versions, risk and source history
nvd · CVE-2026-57138
PublishedNVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Deferred
Weakness classifications: CWE-184 · CWE-693
Original publisher date fields
published: 2026-09-15T11:17:11.180
lastModified: 2026-09-17T14:17:14.627
No normalized affected-package data is projected for this source revision. The original publisher record may contain additional product and version evidence; this does not establish that a package is unaffected.
Original source record · Cite this exact observation · Complete original publisher JSON