CVE-2026-57138
published critical CVSS 3.1 · 9.9PraisonAI codeMode sandbox escape via Function constructor
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MervinPraison | — | PraisonAI>= 1.4.0, < 1.7.2 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.9 / 10
- Severity
- critical
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MervinPraison | PraisonAI | >= 1.4.0, < 1.7.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-184 CWE-184: Incomplete List of Disallowed Inputs
- CWE-693 CWE-693: Protection Mechanism Failure
References
3Provider assertions
2GitHub_M · cna
PraisonAI codeMode sandbox escape via Function constructor
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 376c9c0221f17374824c675b7401ff5d936d6743613b83773d789bd7554bec4e
- Ingested
- 23 Sep 2026, 09:21:43 UTC
- Source record
- Official CVE record