Skip to main content

Python CVE-2026-34953

CRITICAL
Incorrect Authorization (CWE-863)
2026-04-01 https://github.com/MervinPraison/PraisonAI GHSA-98f9-fqg5-hvq5
9.1
CVSS 3.1 · Vendor: https://github.com/MervinPraison/PraisonAI
View

Attack ChainAIDerived

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

  1. Access
    Craft HTTP request with arbitrary Bearer token
  2. Exploit
    OAuthManager.validate_token() loops over empty token store
  3. Execution
    Function returns True for non-matching token
  4. Impact
    Attacker gains authenticated access to all MCP tools

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

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

Exploitation Conditions

MCP server running with OAuthManager enabled and _tokens store uninitialized or empty (default configuration). No valid tokens registered in the authentication store.

Impact

This represents an exceptionally high real-world risk despite the absence of confirmed active exploitation (CISA KEV). The CVSS 9.1 score accurately reflects the severity: network attack vector (AV:N) means internet-exposed instances are immediately vulnerable, low complexity (AC:L) requires no special conditions, and no privileges required (PR:N) means any attacker can exploit it. The vulnerability provides high confidentiality and integrity impact (C:H/I:H) through unrestricted tool access. While EPSS data is unavailable, multiple factors elevate risk: the PoC is trivially simple (single curl command), the affected product is an AI agent framework likely deployed in sensitive environments with access to proprietary data and systems, and the default configuration is exploitable without any misconfiguration. The SSVC decision tree would classify this as immediate priority: exploitation is demonstrable (public PoC), the attack is fully automatable (no user interaction required per UI:N), and technical impact is total (arbitrary code execution via agent.run). The only mitigating factor is that PraisonAI may have limited deployment scale compared to enterprise software, but any exposed instance grants complete system compromise. This vulnerability should be treated as a critical patch priority regardless of exploitation status.

Exploit ScenarioDerived

An external attacker discovers a PraisonAI MCP server exposed on the public internet via port scanning or Shodan reconnaissance, identifying the HTTP endpoint at port 8080. The attacker crafts a JSON-RPC request to the /mcp endpoint with an arbitrary Bearer token (e.g., 'Authorization: Bearer fake_token_abc123') and calls the 'tools/list' method to enumerate available capabilities, receiving a 200 OK response listing 50+ tools. The attacker then invokes 'praisonai.agent.run' to execute a malicious AI agent that exfiltrates sensitive data from connected systems, or uses 'praisonai.containers.file_write' to plant backdoors in containerized environments managed by the framework. Because the server requires no valid credentials and binds to 0.0.0.0 by default, the entire attack succeeds in under 60 seconds with no authentication challenges. Publicly available exploit

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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 02, 2026

Authentication bypass in PraisonAI MCP server (Python package praisonai) allows remote, unauthenticated attackers to execute arbitrary agents, workflows, and file operations with zero authentication. The OAuthManager.validate_token() method incorrectly returns True for any token when its internal token store is empty (default state), treating all HTTP requests with arbitrary Bearer tokens as authenticated. This grants full access to 50+ registered tools including praisonai.agent.run, praisonai.w

Earlier versions of this analysis (1)
v1 Apr 02, 2026 - 00:15 CVSS 9.1

Authentication bypass in PraisonAI MCP server (Python package praisonai) allows remote, unauthenticated attackers to execute arbitrary agents, workflows, and file operations with zero authentication. The OAuthManager.validate_token() method incorrectly returns True for any token when its internal token store is empty (default state), treating all HTTP requests with arbitrary Bearer tokens as authenticated. This grants full access to 50+ registered tools including praisonai.agent.run, praisonai.workflow.run, and container file read/write operations. The server binds to 0.0.0.0 by default with no API key requirement. Public exploit code exists (PoC in GitHub advisory). CVSS 9.1 Critical with network attack vector, low complexity, and no privileges required. EPSS and KEV data not available at time of analysis; no public exploit identified at time of analysis beyond the published PoC.

RemediationAI

Apply the vendor-released patch by upgrading to the fixed version of the praisonai Python package as specified in the GitHub Security Advisory at https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-98f9-fqg5-hvq5 and https://github.com/advisories/GHSA-98f9-fqg5-hvq5. The fix changes the OAuthManager.validate_token() method to return False (reject) for unknown tokens instead of True (accept). If immediate patching is not feasible, implement network-level access controls to restrict MCP server exposure: bind the server to localhost (127.0.0.1) instead of 0.0.0.0, deploy behind a reverse proxy with mandatory authentication, or implement firewall rules allowing only trusted source IPs. For production deployments, explicitly populate the OAuth token store with valid credentials before starting the server, although this is a workaround rather than a fix since the underlying logic flaw remains. Review application logs for suspicious tool invocations (praisonai.agent.run, workflow.run, file_write) from unexpected sources during the vulnerability window. Do not expose PraisonAI MCP servers directly to the internet until patched.

Affected Packages

pypi praisonai fix: 4.5.97

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

This vulnerability stems from a logic error in the OAuth token validation routine within the PraisonAI MCP (Model Context Protocol) server component. The affected code in oauth.py implements a validate_token() method that iterates over an internal _tokens dictionary to verify Bearer tokens. However, when this dictionary is empty-which is the default state unless explicitly populated-the for-loop never executes, causing the function to fall through to an unconditional 'return True' statement at line 381. This is a classic example of CWE-863 (Incorrect Authorization), where the authorization logic fails open rather than closed. The MCP server exposes a JSON-RPC 2.0 API over HTTP that provides access to AI agent execution primitives, workflow orchestration, and container filesystem operations. The vulnerability affects the Python pip package 'praisonai' and occurs specifically in the HTTP-stream transport mode when the server is started with 'praisonai mcp serve --transport http-stream'. The default binding to 0.0.0.0 exposes this vulnerability to any network-accessible client.

Know when Python 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 (https://github.com/MervinPraison/PraisonAI) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

Primary rating from Vendor (https://github.com/MervinPraison/PraisonAI) · only source for this CVE.

CVSS VectorVendor: https://github.com/MervinPraison/PraisonAI

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

Lifecycle Timeline

2
Patch released
Apr 02, 2026 - 14:30 nvd
Patch available
CVE Published
Apr 01, 2026 - 23:29 nvd
CRITICAL 9.1

DescriptionCVE.org

Summary

OAuthManager.validate_token() returns True for any token not found in its internal store, which is empty by default. Any HTTP request to the MCP server with an arbitrary Bearer token is treated as authenticated, granting full access to all registered tools and agent capabilities.

Details

oauth.py:364 (source) -> oauth.py:374 (loop miss) -> oauth.py:381 (sink)

python
# source
def validate_token(self, token: str) -> bool:
    for stored_token in self._tokens.values():
        if stored_token.access_token == token:
            return not stored_token.is_expired()
# sink -- _tokens is empty by default, loop never executes, falls through
    return True

PoC

bash
# install: pip install -e src/praisonai
# start server: praisonai mcp serve --transport http-stream --port 8080

curl -s -X POST http://127.0.0.1:8080/mcp \
  -H "Authorization: Bearer fake_token_abc123" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tools/list","id":1}'
# expected output: 200 OK with full tool list (50+ tools)
# including praisonai.agent.run, praisonai.workflow.run, praisonai.containers.file_write

Impact

Any unauthenticated attacker with network access to the MCP HTTP server can call all registered tools including agent execution, workflow runs, container file read/write, and skill loading. The server binds to 0.0.0.0 by default with no API key required.

Suggested Fix

python
def validate_token(self, token: str) -> bool:
    for stored_token in self._tokens.values():
        if stored_token.access_token == token:
            return not stored_token.is_expired()
# Unknown tokens must be rejected.
# For external/JWT tokens, call the introspection endpoint here before returning.
    return False

Executive ViewAI

Why It Matters

PraisonAI MCP server (praisonai Python package) contains a critical authentication bypass vulnerability that allows unauthenticated remote attackers to execute arbitrary agents, workflows, and file operations without any credentials. Organizations deploying PraisonAI as a service are at immediate risk of unauthorized access to sensitive automation capabilities and file system operations. This vulnerability requires urgent remediation due to the complete absence of authentication controls in the default configuration.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict network access to PraisonAI MCP server via firewall rules-bind to 127.0.0.1 instead of 0.0.0.0 if operationally feasible; (2) Deploy a reverse proxy (nginx/Apache) with API key validation in front of the server; (3) Disable or remove unused tools from the 50+ registered tool suite to reduce attack surface; (4) Implement continuous monitoring of MCP server logs for suspicious Bearer token patterns or unexpected agent/workflow execution. These controls do not eliminate the vulnerability and are temporary only until patching.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.0%
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

Affected Products (CPE)CVE.org

pkg:pip/praisonai

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

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