Python
CVE-2026-34953
CRITICAL
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft HTTP request with arbitrary Bearer token
-
ExploitOAuthManager.validate_token() loops over empty token store
-
ExecutionFunction returns True for non-matching token
-
ImpactAttacker 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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)
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
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
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
Lifecycle Timeline
2DescriptionCVE.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)
# 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 TruePoC
# 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_writeImpact
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
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 FalseExecutive ViewAI
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.
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
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Affected Products (CPE)CVE.org
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
GHSA-98f9-fqg5-hvq5
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB