Skip to main content

PraisonAI EUVDEUVD-2026-78423

| CVE-2026-57141 CRITICAL
Code Injection (CWE-94)
2026-09-15 GitHub_M GHSA-p69m-4f92-2v84
9.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Influence agent input via prompt injection
  2. Delivery
    Model emits crafted codeMode JavaScript
  3. Exploit
    Escape sandbox with Function('return this')()
  4. Execution
    Recover child_process via string concat require
  5. Impact
    Execute 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 code argument passed to the tool's execute method - in practice via prompt injection into untrusted content the agent processes. The regex blocklist (require('child_process'), require('fs'), import ... from 'child_process', process.exit, eval) is the only barrier and is bypassed by (1) recovering the global object with Function('return this')() and (2) dynamically constructing the module name, e.g. require('child_'+'process'). Limiting factors: deployments without codeMode enabled are not exploitable, and impact is bounded by the OS privileges of the PraisonAI process. No user interaction or authentication in the vector, but the LLM-tool-invocation path is the true prerequisite.

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: new Function() + with(sandbox) provides no isolation, and the regex blocklist is trivially defeated (Function('return this')() recovers the global object; require('child_'+'process') evades the literal-string regex), yielding full host RCE with the PraisonAI process's privileges. Signals mostly align: SSVC rates Technical Impact 'total' and Automatable 'yes', and a complete working PoC is published in the GHSA advisory. Counter-signals temper urgency - SSVC Exploitation is 'none' (no observed in-the-wild activity), the issue is NOT in CISA KEV, and EPSS is modest at 0.77% (54th percentile), consistent with a newly disclosed flaw in a niche product rather than mass exploitation. The CVSS 9.8 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H) is defensible for the impact, but note it does not capture the key real-world gate: exploitation requires the codeMode tool to actually be enabled for agents and the attacker to influence the model's code argument (typically via prompt injection). That deployment gate, not raw CVSS, is what should drive prioritization.

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 Function('return this')() to grab the global object and calls global.require('child_'+'process').execSync(...), bypassing the blocklist entirely. This yields arbitrary OS command execution, file read/write, and theft of environment credentials as the PraisonAI process. A complete, tested PoC (recovering process, calling execSync('id')) is published in the GHSA advisory.

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

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

Alert me

AnalysisAIv1 – 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

PraisonAI < 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 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

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

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.

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.8%
Top 46% exploitable
Prevalence
Low
niche open-source multi-agent framework, limited production footprint
Data Quality
6 sources
Confidence: High

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.8%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

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.

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