Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-57138— PraisonAI codeMode sandbox escape via Function constructor

Quick assessment

Affected
MervinPraison PraisonAI
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PraisonAI 是一个多智能体(multi-agent)团队协作系统。在 1.4.0 至 1.7.2 版本中, 中的 功能使用 在名为 的包装环境中执行不受信任的 JavaScript 代码,并依赖于一个较小的源码黑名单以及被遮蔽(shadowed)的 和 属性来实现沙箱隔离。 然而,攻击者控制的 输入代码可以通过 恢复真正的 构造函数,进而获取未被遮蔽的 对象及 ,从而绕过标榜的沙箱机制,访问宿主机的文件系统和子进程 API。攻击者能够读取敏感信息、修改文件、执行命令,甚至导致宿主进程资源耗尽。 该问题已在

CVSS 9.9 · Critical

Possible ATT&CK Techniques 1 AI

T1059.007 · JavaScript
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-57138

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
PraisonAI codeMode sandbox escape via Function constructor
Source: CVE Program / CVE List V5
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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
不完整的黑名单
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MervinPraison PraisonAI >= 1.4.0, < 1.7.2 -

II. Public POCs for CVE-2026-57138

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-57138

登录查看更多情报信息。

Patches & Fixes for CVE-2026-57138 (1)

Vendor Advisories for CVE-2026-57138 (1)

Vendor Pages for CVE-2026-57138 (1)

Same Patch Batch · MervinPraison · 2026-09-15 · 12 CVEs total

CVE-2026-57139 9.8 CRITICAL PraisonAI MCPServer exposes unauthenticated HTTP tools/call
CVE-2026-57141 9.8 CRITICAL PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool
CVE-2026-57147 9.8 CRITICAL praisonai-platform: default JWT signing secret 'dev-secret-change-me' enables token forger
CVE-2026-57148 9.8 CRITICAL praisonai-platform 0.1.4 still boots on the hardcoded JWT secret dev-secret-change-me (def
CVE-2026-57140 9.4 CRITICAL PraisonAI AgentOS exposes unauthenticated agent listing and invocation
CVE-2026-57133 8.8 HIGH PraisonAI utility shell safe-command wrapper allowlist bypass via shell chaining
CVE-2026-57136 8.8 HIGH PraisonAI SandboxExecutor allowedCommands bypass via shell chaining
CVE-2026-57137 8.8 HIGH PraisonAI AgentLoop onToolCall approval runs after tool execution
CVE-2026-57112 8.3 HIGH PraisonAI ToolsMCPServer legacy SSE transport accepts attacker Host/Origin and exposes reg
CVE-2026-57134 8.2 HIGH PraisonAI MCPSecurity Basic/OAuth authentication policies accept invalid credentials witho
CVE-2026-57135 7.6 HIGH PraisonAI SandboxExecutor network-isolated mode does not block non-proxy-aware network cli

IV. Related Vulnerabilities

V. Comments for CVE-2026-57138

No comments yet


Leave a comment