Vulnerability Description
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.
CVSS Score
CRITICAL
Related Weaknesses (CWE)
References
- https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64
- https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fj
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fj
FAQ
What is CVE-2026-57138?
CVE-2026-57138 is a vulnerability with a CVSS score of 9.9 (CRITICAL). 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...
How severe is CVE-2026-57138?
CVE-2026-57138 has been rated CRITICAL with a CVSS base score of 9.9/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2026-57138?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.