Read the docs
TI-2026-41120 Aliases CVE-2026-57141GHSA-p69m-4f92-2v84

PraisonAI: Remote Code Execution via Sandbox Escape in `codeMode` Tool

Priority MEDIUM 50CWE-94Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Code execution
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-94.

Summary

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00745 55th percentileScored 2026-11-07
Fix Fixed PraisonAI (MervinPraison): 1.7.2praisonai (npm): 1.7.2

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
MervinPraisonPraisonAIbefore 1.7.21.7.2Patch availableCNA
—praisonai (npm)before 1.7.21.7.2Patch availableGHSA-p69m-4f92-2v84
  • PraisonAI VendorMervinPraison Affected before 1.7.2 Fixed in 1.7.2 Patch available CNA
  • praisonai (npm) Vendor— Affected before 1.7.2 Fixed in 1.7.2 Patch available GHSA-p69m-4f92-2v84

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*——MervinPraison
  • cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* Versions — — ·MervinPraison

Remediation

  • Fix · CNA PraisonAI (MervinPraison) Fixed in 1.7.2
  • Fix · GHSA-p69m-4f92-2v84 praisonai (npm) Fixed in 1.7.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-57141
  2. 2026-10-03 Alias added: GHSA-p69m-4f92-2v84

References

  • TI-2026-79619 Missing authentication in PraisonAI AgentOS exposes agent chat CVSS 3.1CRITICAL 9.8
  • TI-2026-71236 Missing access control in PraisonAI AgentTeam exposes agent endpoints CVSS 3.1CRITICAL 9.8
  • TI-2026-44052 PraisonAI before 1.6.78 Remote Code Execution via CodeAgent CVSS 4.0CRITICAL 10.0
  • TI-2026-41123 praisonai-platform 0.1.4 still boots on the hardcoded JWT secret dev-secret-change-me (default-open production guard) CVSS 3.1CRITICAL 9.8
  • TI-2026-41122 praisonai-platform: default JWT signing secret 'dev-secret-change-me' enables token forgery CVSS 3.1CRITICAL 9.8
  • TI-2026-41118 PraisonAI MCPServer exposes unauthenticated HTTP tools/call CVSS 3.1CRITICAL 9.8
See all 177 →

Sources