Summary
CVE-2026-57134 is an authentication bypass vulnerability (CWE-287/CWE-288/CWE-863) in the MCPSecurity authentication helper of the npm praisonai package, part of the PraisonAI multi-agent framework. The library’s policy evaluator fails to validate credentials for the "basic" and "oauth" authentication methods it advertises, allowing an attacker to bypass authentication controls on MCP (Model Context Protocol) servers that rely on this component. The issue is rated High severity (CVSS 8.2) and is remotely exploitable with no privileges or user interaction required.
Technical details
- Root cause: The
MCPSecurity.evaluatePolicy()function (insrc/praisonai-ts/src/mcp/security.ts) only invokes the developer-supplied credential validation callback when the configured authentication method isapi-keyorbearer. Thebasicandoauthbranches never call the validator, so any non-emptyAuthorizationheader is treated as authenticated regardless of whether the credentials are valid. - Trigger conditions: A developer must configure an MCP server or tool to use
MCPSecuritywith abasicoroauthauthentication policy (expecting a custom validation callback to be enforced). - Attack vector: Network — an unauthenticated remote attacker simply sends a request with any non-empty
Authorizationheader (no valid credentials required) to a service protected by the affectedbasic/oauthpolicy. - Impact: Authentication bypass allowing access to protected MCP tools and resources, execution of authenticated tool calls, reading of protected data, triggering of workflow actions, and circumvention of audit/authorization controls. The CVSS vector (C:H/I:L/A:N) reflects a high confidentiality impact with limited integrity impact and no availability impact.
Affected software
- Vendor/Project: MervinPraison / PraisonAI
- Package:
praisonai(npm package, TypeScript implementation) - Vulnerable versions: 1.5.1 through 1.7.1 (inclusive)
- Fixed version: 1.7.2
Severity
- CVSS v3.1 Base Score: 8.2 (High)
- Vector:
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
Mitigation and recommended actions
- Immediate: Upgrade the
praisonainpm package to version 1.7.2 or later, where the validation callback is correctly invoked for all advertised authentication methods. - If immediate patching is not possible:
- Avoid relying on
basicoroauthauthentication policies withinMCPSecurityuntil patched; useapi-keyorbearermethods, which correctly enforce the validation callback, or implement independent authentication/authorization checks in front of the MCP server. - Restrict network exposure of MCP servers using this library to trusted networks or place them behind a properly validating reverse proxy/API gateway until the upgrade is applied.
- Audit logs for MCP tool calls and resource access made via basic/oauth-configured endpoints for signs of unauthorized access predating the patch.
- Avoid relying on

