CVE-2026-57141
PraisonAI is a multi-agent teams system. Prior to 1.7.2, the …
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p69m-4f92-2v84
- github.com/advisories/GHSA-p69m-4f92-2v84
- github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27
- github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60
- nvd.nist.gov/vuln/detail/CVE-2026-57141
- cve.org/CVERecord?id=CVE-2026-57141
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.