{"id":"CVE-2026-57141","published":"2026-09-15T10:14:16Z","modified":"2026-09-15T13:52:47Z","title":"PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"PraisonAI is a multi-agent teams system. Prior to 1.7.2, the codeMode tool in src/praisonai-ts/src/tools/builtins/code-mode.ts executes model-generated JavaScript with new Function() and with(sandbox), while a regular-expression blocklist can be bypassed with Function('return this')() to recover the global object and by constructing the child_process module name dynamically. An attacker who can influence the code argument can access host process capabilities, read or write files, obtain environment credentials, and execute operating-system commands with the PraisonAI process privileges. This issue is fixed in version 1.7.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00745,"percentile":0.55705,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p69m-4f92-2v84","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27","tags":["x_refsource_MISC"]},{"url":"https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":11.14},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 1.7.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-09-15T13:30:37.824387Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"praisonai","vulnerableRanges":["<1.7.2"],"patched":["1.7.2"],"from":["GHSA-p69m-4f92-2v84"],"provenance":"source"}],"summary":{"text":"PraisonAI, a multi-agent teams system from MervinPraison, contains a flaw in its codeMode tool (src/praisonai-ts/src/tools/builtins/code-mode.ts), which runs model-generated JavaScript using new Function() and with(sandbox) and relies on a regular-expression blocklist that can be bypassed. An attacker able to influence the code argument can use the bypass to reach the host process, read or write files, obtain environment credentials, and run operating-system commands with the privileges of the PraisonAI process.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:22Z"},"euvd":{"id":"EUVD-2026-78423","exploited":false,"provenance":"source"}}