Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInfluence agent input via prompt injection
-
DeliveryModel emits crafted codeMode JavaScript
-
ExploitEscape sandbox with Function('return this')()
-
ExecutionRecover child_process via string concat require
-
ImpactExecute OS commands as PraisonAI process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the codeMode tool (src/praisonai-ts/src/tools/builtins/code-mode.ts) is enabled for agents AND that the attacker can influence the model-generated |
| Impact | This is a genuine high-priority issue, not a high-CVSS-but-low-risk paper cut. The CWE-94 code-injection root cause is real: |
| Exploit ScenarioDerived | An attacker who can influence an agent's inputs (e.g., via prompt injection in untrusted content the agent processes) coerces the LLM into emitting JavaScript for the codeMode tool that runs |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 16, 2026
Remote code execution in the PraisonAI TypeScript codeMode tool (npm package praisonai <= 1.7.1) lets an attacker who can influence the model-generated code argument escape the regex blocklist 'sandbox' and run arbitrary JavaScript with the host process's privileges, reading and writing files, harvesting environment credentials, and executing operating-system commands. The CVSS 3.1 vector is unauthenticated and network-facing (AV:N/AC:L/PR:N/UI:N, 9.8) with total confidentiality and integrity impact, though the real-world prerequisite is that codeMode is enabled for an agent and the attacker can steer the tool argument - typically through prompt injection into untrusted content the agent ingests. Publicly available proof-of-concept code exists (published in the GitHub advisory, demonstrated against Node.js v20.20.0), EPSS is a low 0.77% (54th percentile) and CISA SSVC records Exploitation: none, so there is no confirmation of active exploitation at time of analysis; the vendor fix is version 1.7.2.
RemediationAI
Upgrade the TypeScript SDK to praisonai 1.7.2 or later - the vendor-released fix version - which is delivered via the upstream commit 709a0387853709a5e2f2c34680fa64cada252c27 and the release tag v4.6.60; if you consume the Python packaging, pin praisonai>=4.6.60 as the Dockerfiles and pyproject.toml now do. Until you can upgrade, the single most effective control is to disable the codeMode tool for any agent that processes untrusted or externally sourced content, since the vulnerability is only reachable when that tool is enabled and an attacker can influence its code argument (typically via prompt injection). Do not rely on the regex blocklist as a boundary. In parallel, reduce blast radius by running the PraisonAI process as an unprivileged, containerized user with a read-only filesystem, dropped Linux capabilities, seccomp and no inbound/outbound network it does not need, and by removing secrets from the process environment (the advisory notes environment credentials are directly readable). The upstream fix also adds defense-in-depth in the sandbox executor - shell-metacharacter rejection, an allowlist with shell: false direct spawn, and stripping proxy/network environment variables - but those changes harden the companion command sandbox rather than making new Function()/with(sandbox) safe, so patching remains mandatory. Consult https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-p69m-4f92-2v84 for the vendor's canonical guidance; note the assessed prerequisites mean that even a correct deployment should treat LLM tool inputs as untrusted and gate dangerous tools behind human approval, which the fix's agent-loop change (wrapping tools with approval when onToolCall is configured) begins to support.
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 flaw is a JavaScript sandbox-escape / code-injection issue (CWE-94) in src/praisonai-ts/src/tools/builtins/code-mode.ts. The tool takes LLM-generated JavaScript from the tool-call code argument and executes it via new Function('sandbox', \with (sandbox) { ${code} }\), relying solely on a regex blocklist (blocking literal require('child_process'), require('fs'), import ... from 'child_process', process.exit, and eval) plus a with(sandbox) scope in which process and require are set to undefined. None of these constitute an isolation boundary: the with statement only inserts an object into the scope chain and does not hide the global object, so Function('return this')() recovers the global and yields global.require; the module name can then be split (require('child_' + 'process')) so the literal-string regexes never match. The advisory demonstrates a working payload that prints the Node version and executes cp.execSync('id'). The underlying technology is the PraisonAI multi-agent framework, whose Python packaging track requires praisonai>=4.6.60; the affected CPE is cpe:2.3:a:mervinpraison:praisonai:*:*:*:*:*:*:*:* and ENISA EUVD lists affected versions as PraisonAI < 1.7.2. Impact is bounded by the OS privileges of the PraisonAI process and by whether codeMode is enabled at all.
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:N/UI:N/S:U/C:H/I:H/A:H
Network-reachable agent input with a trivially bypassable blocklist (AC:L, PR:N) yields full host RCE (C:H/I:H/A:H); deployment gate (codeMode enabled) is config, not a CVSS metric.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
DescriptionCVE.org
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.
Technical POC Analysis
CWE-94, Code Injection.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical remote code execution flaw in the PraisonAI TypeScript agent framework (npm package praisonai through version 1.7.1) lets untrusted content ingested by an AI agent hijack the agent's codeMode tool and run arbitrary JavaScript with the host process's privileges, exposing files, environment credentials, and operating-system commands. Because these agents typically run inside corporate networks with service-account access to internal data and secrets, a single poisoned web page, document, or email can convert an AI assistant into an attacker-controlled execution point against the organization. Leadership should treat this as a high-priority exposure for any team operating PraisonAI agents with codeMode enabled.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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-78423
GHSA-p69m-4f92-2v84
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB