Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain ability to submit code to codeMode
-
DeliveryCraft JS using ({}).constructor.constructor
-
ExploitRecover real Function/process constructor
-
ExecutionReach process.mainModule.require for fs/child_process
-
ImpactExecute 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
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).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Remote code execution in PraisonAI before 1.6.78 allows attackers to run arbitrary Python on the host by manipulating th
PraisonAI's TypeScript MCP server (npm package `praisonai`, versions 1.5.0 through 1.7.1) exposes an HTTP JSON-RPC trans
Unauthenticated authentication bypass in praisonai-platform prior to 0.1.6 (and PraisonAI before 4.6.51) allows a remote
WebSocket origin-validation bypass in PraisonAI's Browser Server (praisonai/browser/server.py) before 4.6.58 lets an att
Unauthenticated agent access in PraisonAI before 1.7.3 lets remote attackers read agent instructions and system prompts
PraisonAI's `praisonai serve` subsystem (agents and unified modes) accepts an `--api-key` CLI flag that is parsed but ne
System prompt extraction and unauthorized tool invocation in PraisonAI before 4.6.78 arise because the prompt-injection
Unauthenticated remote agent invocation in PraisonAI versions 4.6.34 through 4.6.57 allows any network-reachable caller
SSRF protection bypass in PraisonAI's praisonaiagents library (all versions before 1.6.58) lets low-privileged users rou
Server-side request forgery in PraisonAI's Crawl4AI/Chromium crawling backend (all versions before 1.6.78) lets low-priv
Authentication fail-open in PraisonAI's Recipe HTTP server allows unauthenticated remote attackers to invoke recipe exec
Authentication bypass in PraisonAI's AgentServer component exposes all routes - /publish, /events, /info, /health - to u
EUVD-2026-78420
GHSA-vmmj-pfw7-fjwp
NVD
CVE.org
EPSS
Exploit-DB