Skip to main content

PraisonAI CVE-2026-57138

| EUVDEUVD-2026-78420 CRITICAL
Incomplete List of Disallowed Inputs (CWE-184)
2026-09-15 GitHub_M GHSA-vmmj-pfw7-fjwp
9.9
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Gain ability to submit code to codeMode
  2. Delivery
    Craft JS using ({}).constructor.constructor
  3. Exploit
    Recover real Function/process constructor
  4. Execution
    Reach process.mainModule.require for fs/child_process
  5. Impact
    Execute commands and read secrets on host

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation completeness
Exploitation Conditions

Exploitation requires that the application built on praisonai-ts (npm 'praisonai' 1.4.0 through 1.7.1) registers/enables the codeMode built-in tool AND routes attacker-influenceable input into the code string it executes - for example an LLM agent that calls codeMode on user-supplied or prompt-injected content, or a service that accepts code directly. Once that input path exists, no further conditions apply: the regex blocklist and undefined-shadowed process/require are bypassed by prototype-chain recovery of the Function constructor, so attack complexity is low and no user interaction is needed. Limiting factors: the codeMode tool must actually be exposed and reachable by the attacker; deployments that never invoke codeMode, or gate it behind trusted-only input, are not exploitable. Authentication: CVSS PR:L indicates some privilege/context to reach the tool is required.

Impact

This is a genuine high-priority issue, not a paper-tiger high score. The vendor CVSS 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) is well-supported by the description: codeMode advertises a sandbox but enforces it only with a source-code regex blocklist and shadowed process/require globals, both trivially defeated via ({}).constructor.constructor to recover the real Function constructor and process.mainModule.require - yielding full host filesystem, subprocess, and process-lifetime control (C:H/I:H/A:H). The scope change (S:C) is defensible because escape crosses the intended sandbox boundary into the host V8 context/process. Counter-signals temper urgency: EPSS is only 0.65% (49th percentile), there is NO CISA KEV listing and NO public exploit identified at time of analysis, so exploitation is neither confirmed active nor automated-mass. CWE-184 (incomplete blocklist) is the correct root cause. Net: architecturally severe and reliably exploitable where reachable, but current telemetry shows no evidence of in-the-wild abuse - treat as urgent patch given trivial exploit complexity, while recognizing real-world exposure depends on whether an application actually routes attacker-influenceable input into codeMode.

Exploit ScenarioDerived

An application built on PraisonAI (praisonai-ts 1.4.0-1.7.1) exposes the codeMode built-in tool, and an attacker (or a prompt-injected LLM agent) supplies a code string to it. The payload uses ({}).constructor.constructor('return process')() to recover the real process object, reaches process.mainModule.require('child_process'), and executes arbitrary host commands, reading secrets or modifying files. No public exploit is identified, but the escape technique is documented in the GHSA advisory and is trivial to reproduce.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 17, 2026

Code escaping sandbox in the PraisonAI npm package's built-in codeMode tool (praisonai 1.4.0 through 1.7.1) lets anyone who can influence the code string read host files, write or modify files, spawn subprocesses, and consume host process resources, despite the tool advertising a sandbox boundary. The implementation blocks a handful of literal source patterns and shadows process and require with undefined properties, but untrusted code can walk the JavaScript prototype chain (for example ({}).constructor.constructor) to recover the real Function constructor and reach process.mainModule.require, bypassing both controls at low complexity. The vulnerability is rated 9.9 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H) with the vector indicating some prior privilege or context is needed to reach the tool; EPSS is low (0.65%, 49th percentile) and no public exploit code or confirmed active exploitation was identified at time of analysis, but the low attack complexity and high confidentiality, integrity, and availability impact make this a genuine high-priority fix rather than an inflated score.

RemediationAI

Upgrade the npm package praisonai to 1.7.2, which the vendor released as the fix for this issue, and, in repositories that consume the Python artifacts referenced by the same commit, move to the bumped versions (praisonai>=4.6.60, praisonai-agents 1.6.60) as indicated by the pinned Dockerfiles and pyproject/uv.lock changes; the advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-vmmj-pfw7-fjwp and the commit https://github.com/MervinPraison/PraisonAI/commit/709a0387853709a5e2f2c34680fa64cada252c27 provide the authoritative fix details. If immediate upgrade is not possible, remove the codeMode tool from the registered tool set or, at minimum, never pass untrusted, user-supplied, or prompt-injected content into it - restricting codeMode input to statically trusted strings fully removes the attack path, at the cost of losing dynamic tool composition. The same commit adds a human-in-the-loop approval hook in the agent loop (onToolCall wrapping of tools with approval), which is a useful compensating control but changes interactive behavior by prompting before tool execution. The associated sandbox-executor hardening (rejecting shell metacharacters, parsing commands and spawning without a shell when an allowlist or strict mode is configured, blocking network-oriented commands such as curl, wget, nc, ssh, and interpreters like node/python/ruby/perl in network-isolated mode, and stripping proxy environment variables) reduces lateral movement from a successful escape; be aware these measures are defence-in-depth only and will break legitimate workflows that rely on shell pipelines, chained commands, or in-sandbox network access.

Affected VersionsENISA

PraisonAI 1.4.0, < 1.7.2

Affected Packages

npm praisonai fix: 1.7.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the TypeScript built-in tool codeMode shipped in the npm package praisonai (source path src/praisonai-ts/src/tools/builtins/code-mode.ts), which is described to consumers as executing code in a sandboxed environment and is registered with capabilities including sandbox: true. Internally it does not use a real isolation boundary such as a separate V8 isolate, vm2-style context, or OS-level sandbox; instead it applies a small regular-expression blocklist for exact patterns (require('child_process'), require('fs'), matching import statements, process.exit, and eval) and then attempts to hide dangerous globals by injecting process: undefined and require: undefined as ordinary properties on a plain JavaScript object. It then executes attacker-controlled code in the host V8 context with new Function('sandbox', 'with (sandbox) { ... }'). This maps to CWE-184 (Incomplete List of Disallowed Inputs): the denylist is trivially evadable and the shadowed names are not a security boundary, because shadowing an object property does not remove the underlying objects the host realm already exposes. Ordinary JavaScript prototype access such as ({}).constructor.constructor('return process')() reconstructs the genuine Function constructor, and from a CommonJS host context the recovered process object provides process.mainModule.require, which restores arbitrary module loading including fs and child_process. The net effect is host filesystem access, subprocess execution, secret disclosure, file modification, and resource-exhaustion potential from input that was contractually promised to be sandboxed.

Know when Praisonai gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.9 CRITICAL

Trivially reliable sandbox escape (AC:L) reachable via an exposed tool by a privileged/agent context (PR:L); crosses the sandbox boundary to the host process (S:C) yielding full RCE (C/I/A:H).

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

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.

Technical POC Analysis

CWE-184 / CWE-693: incomplete list of disallowed inputs and protection mechanism failure.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

PraisonAI's npm package (versions 1.4.0 through 1.7.1) ships a codeMode tool whose advertised sandbox can be bypassed, allowing anyone able to influence the code string to read and modify host files, spawn subprocesses, and consume host process resources. Any team running PraisonAI as part of an agent, automation, or CI pipeline is exposed on the underlying host, not just within the assistant's logical boundary. Leadership should care because the flaw converts a contained AI coding feature into host-level compromise of systems that may hold credentials, source code, and production access, even though no public exploit or active exploitation has been observed to date.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 51% exploitable
Prevalence
Low
niche but growing OSS multi-agent AI framework, limited production footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Very High

Priority Score

51
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2026-61447 CRITICAL POC
10.0 Jul 11

Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th

CVE-2026-57139 CRITICAL POC
9.8 Sep 15

PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans

CVE-2026-57148 CRITICAL POC
9.8 Sep 15

Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote

CVE-2026-55536 CRITICAL POC
9.1 Aug 25

WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att

CVE-2026-61426 HIGH POC
8.8 Jul 11

Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts

CVE-2026-55541 HIGH POC
8.8 Aug 25

PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne

CVE-2026-61439 HIGH POC
8.7 Jul 11

System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection

CVE-2026-55534 HIGH POC
8.6 Aug 25

Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller

CVE-2026-55526 HIGH POC
8.5 Aug 25

SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou

CVE-2026-61429 HIGH POC
8.4 Jul 11

Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv

CVE-2026-55533 HIGH POC
8.2 Aug 25

Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec

CVE-2026-55528 HIGH POC
8.2 Aug 25

Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy