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.
CVE-2026-57138
This critical-severity CVE scores 9.9 under the CNA's CVSS (NVD's own analysis pending). EPSS exploit probability: 0.4%, top 67% of all CVEs by exploit prediction. GitHub Security Advisory data not yet ingested — confidence will rise once GHSA publishes (typical lag: hours to days for open-source ecosystem CVEs; never for infrastructure-only CVEs).
- High severity, but no confirmed exploitation yet
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
- CVSS v3
- 9.9
- EG Score
- 9.9(medium)
- EG Risk
- 61(Track*)EG Risk 61/100SSVC: Track*
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity99% × 45%Exploitation40% × 40%Automatability0% × 15%Action: Watch closely — could escalate to Attend. - EPSS PROB
- 0%
- EPSS %ILE
- 33%
- KEV
- Not listed
Published
June 18, 2026
Last Modified
September 17, 2026
Advisory Details (3)
Auto-updated Sep 17, 2026npm Package: codeMode Sandbox Escape via Function Constructor · Advisory · MervinPraison/PraisonAI · GitHub
https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fjwpPraisonAI v4.6.60
Patch available: MervinPraison/PraisonAI v4.6.60
https://github.com/MervinPraison/PraisonAI/releases/tag/v4.6.60commit 709a03878537 (MervinPraison/PraisonAI)
Patch available: MervinPraison/PraisonAI v4.6.144 (contains commit 709a03878537)
https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27Vendor Advisories for CVE-2026-57138(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Affected Packages
(1 across 1 ecosystem)
npm(1)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| praisonai | — | 1.7.2 | — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 6× in last 7d / 6× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-09-18 19:28 UTCEPSS rescore
- 2026-09-17 19:31 UTCEPSS rescore
- 2026-09-17 14:20 UTCEG score recompute
- 2026-09-16 14:08 UTCEPSS rescore
- 2026-09-16 05:15 UTCEPSS rescore
- 2026-09-15 11:29 UTCEG score recompute
- 2026-07-30 22:29 UTCEG score recompute
- 2026-07-26 17:46 UTCEG score recompute
- 2026-07-23 03:20 UTCEG score recompute
- 2026-07-20 21:33 UTCEG score recompute
Frequently asked(5)
What is CVE-2026-57138?
When was CVE-2026-57138 disclosed?
Is CVE-2026-57138 actively exploited?
What is the CVSS score of CVE-2026-57138?
How do I remediate CVE-2026-57138?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-57138
Is Your Infrastructure Affected by CVE-2026-57138?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.