CVE-2026-57141 Details
Description
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.
A remote code execution vulnerability exists in the PraisonAI multi-agent system, specifically in versions prior to 1.7.2. The issue arises within the codeMode tool, located in 'src/praisonai-ts/src/tools/builtins/code-mode.ts'. This tool executes model-generated JavaScript using 'new Function()' and 'with(sandbox)', creating a sandboxed environment. However, the sandbox is not secure, as the 'with' statement does not prevent access to the global object. An attacker can exploit this by bypassing a regular-expression blocklist to access host process capabilities, read or write files, obtain environment credentials, and execute operating-system commands with the same privileges as the PraisonAI process.
Users can update to PraisonAI version 1.7.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 15, 2026CISA-ADP
Assessed Sep 15, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| MervinPraison PraisonAI | <= 1.7.1 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 15, 2026 | CVE Modified | CISA-ADP |
| Sep 15, 2026 | New CVE Received | [email protected] |
Volerion