Skip to main content

Praisonai CVE-2026-40159

| EUVDEUVD-2026-21511 MEDIUM
Information Exposure (CWE-200)
2026-04-10 GitHub_M GHSA-pj2r-f9mw-vrcq
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

CVSS 5.5 reflects a local attack vector (AV:L) requiring user interaction (UI:R), with no privileges required (PR:N), resulting in high confidentiality impact (C:H) but no integrity or availability impact. The moderate CVSS score masks the real-world severity: supply chain attacks via compromised npm packages are increasingly common, and unintended credential exposure is a persistent threat in AI/LLM tool chains where developers may not anticipate environment variable leakage. EPSS and KEV status are not provided, but the vulnerability's mechanics align with high exploitability in practice - an attacker controlling a malicious npm package or social engineering a developer to use a trojanized MCP tool could silently exfiltrate credentials at scale. The attack complexity is low (AC:L) and requires only user interaction to trigger (e.g., running a PraisonAI command that uses an MCP tool), making this a real priority for organizations using PraisonAI with sensitive credentials in environment variables. The lack of integrity/availability impact may lower perceived priority, but credential theft is a critical security failure in practice.

Exploit ScenarioDerived

A developer uses PraisonAI with API keys (e.g., OpenAI_API_KEY, DATABASE_PASSWORD) stored in environment variables. An attacker publishes a malicious npm package with a name similar to a popular MCP tool and tricks the developer into using it via an MCP tool configuration (e.g., MCP("npx -y @smithery/malicious-cli ...")). When the developer runs the PraisonAI command, the subprocess spawned by the vulnerable MCP integration inherits all environment variables, and the attacker's code silently exfiltrates the credentials to a remote server. This attack is feasible because npx automatically downloads and executes packages from npm without local caching by default, and developers often do not audit the subprocesses invoked by higher-level tools like PraisonAI.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Apr 10, 2026

PraisonAI before version 4.5.128 exposes sensitive environment variables to untrusted subprocess commands executed through its MCP (Model Context Protocol) integration, enabling credential theft and supply chain attacks when third-party tools like npx packages are invoked. An unauthenticated local attacker with user interaction can trigger MCP commands that inherit the parent process environment, gaining access to API keys, authentication tokens, and database credentials without the knowledge of developers using PraisonAI. The vulnerability is fixed in version 4.5.128.

RemediationAI

Upgrade PraisonAI to version 4.5.128 or later, which fixes the environment variable exposure. No workaround is available without upgrading; however, organizations can mitigate risk by restricting sensitive environment variables in the runtime environment where PraisonAI executes (e.g., use dedicated service accounts with minimal credentials, avoid storing secrets in process-level environment variables, and instead use secret management systems or runtime injection mechanisms that do not forward credentials to subprocesses). Refer to the official GitHub security advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-pj2r-f9mw-vrcq for upgrade instructions and confirmation.

Affected VersionsENISA

PraisonAI < 4.5.128

Affected Packages

pypi praisonai fix: 4.5.128

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

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

Technical ContextAI · show details

PraisonAI's MCP integration spawns background server processes via Python's subprocess module using stdio-based command execution. The implementation passes user-supplied command strings directly to the subprocess module without sanitizing the environment dictionary. By default, Python's subprocess.Popen() forwards the entire parent process environment (os.environ) to child processes unless explicitly restricted via the env parameter. When MCP tools invoke external package runners such as npx -y, the spawned subprocess inherits sensitive environment variables from the host PraisonAI process, including API keys and credentials. This is a classic information disclosure vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) where the trust boundary between the parent process and dynamically-loaded third-party code is not properly enforced. The root cause is the absence of environment variable filtering or allowlisting before subprocess creation.

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 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch released
Apr 10, 2026 - 20:30 nvd
Patch available
CVE Published
Apr 10, 2026 - 16:57 nvd
MEDIUM 5.5

DescriptionCVE.org

PraisonAI is a multi-agent teams system. Prior to 4.5.128, PraisonAI’s MCP (Model Context Protocol) integration allows spawning background servers via stdio using user-supplied command strings (e.g., MCP("npx -y @smithery/cli ...")). These commands are executed through Python’s subprocess module. By default, the implementation forwards the entire parent process environment to the spawned subprocess. As a result, any MCP command executed in this manner inherits all environment variables from the host process, including sensitive data such as API keys, authentication tokens, and database credentials. This behavior introduces a security risk when untrusted or third-party commands are used. In common scenarios where MCP tools are invoked via package runners such as npx -y, arbitrary code from external or potentially compromised packages may execute with access to these inherited environment variables. This creates a risk of unintended credential exposure and enables potential supply chain attacks through silent exfiltration of secrets. This vulnerability is fixed in 4.5.128.

Threat Intelligence Overview

EPSS Score
0.0%
Top 97% exploitable
Threat Intel
1
1 source
Social Media
1
Sightings
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
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
Poc
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
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.

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