Python
CVE-2026-34953
CRITICAL
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Lifecycle Timeline
3DescriptionGitHub Advisory
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 FalseAnalysisAI
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
Technical ContextAI
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.
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.
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.
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
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
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
Cross-user flow execution in Langflow (< 1.9.1) lets any authenticated API-key holder run another user's flow by passing
Same weakness CWE-863 – Incorrect Authorization
View allSame technique Authentication Bypass
View allShare
External POC / Exploit Code
Leaving vuln.today
GHSA-98f9-fqg5-hvq5