ZeroHour

CVE-2026-57134

niche

Authentication Bypass in PraisonAI MCP Security Policies (basic/OAuth)

CVSS 3.1
8.2 high
EPSS
Published
()
Modified
AI analysis

PraisonAI, an open-source multi-agent framework, fails to validate credentials in MCPSecurity.evaluatePolicy() (src/praisonai-ts/src/mcp/security.ts): the configured auth.validate() callback is only invoked for api-key and bearer auth methods, while basic and OAuth policies accept any non-empty Authorization header and immediately return an authenticated result. An unauthenticated attacker on the network can send an arbitrary or malformed Authorization header to an MCP endpoint protected by a basic or OAuth policy and be treated as authenticated. This grants access to MCP tools and resources intended to be protected, with high confidentiality impact and low integrity impact (CVSS 3.1: 8.2). Versions 1.5.1 through 1.7.1 are affected when deployments use the praisonai-ts MCP security module with basic or OAuth policies; the flaw is fixed in version 1.7.2. No public PoC exists and no exploitation has been observed in the wild.

What to do: Upgrade PraisonAI to version 1.7.2 or later, where credential validation is enforced for all auth methods. If immediate upgrade is not possible, switch MCP policies from basic/OAuth to api-key or bearer (which do call auth.validate()), or front MCP endpoints with an authenticating reverse proxy. Audit logs for MCP requests with basic or OAuth policies that were accepted between version 1.5.1 and the upgrade, since any non-empty Authorization header would have been honored.

Affected
PraisonAI (praisonai-ts MCP security module)>= 1.5.1, < 1.7.2
Estimated exposure
nichelikely hundreds to low thousands of self-hosted deployments at most; no reliable count available — PraisonAI is an open-source developer framework typically self-hosted, and the vulnerable code path only applies to deployments that enable the MCP security module with basic or OAuth policies; no plugin install counts or public scan data…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

PraisonAI is a multi-agent teams system. From 1.5.1 until 1.7.2, MCPSecurity.evaluatePolicy() in src/praisonai-ts/src/mcp/security.ts invokes the configured credential validator only when AuthMethod is api-key or bearer. Basic and OAuth policies accept any non-empty Authorization header without calling auth.validate(), then return an authenticated result, allowing callers with invalid credentials to access MCP tools and resources protected by those policies. This issue is fixed in version 1.7.2.

Weakness
CWE-287, CWE-288, CWE-863
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N

In the news

No ingested article mentions this CVE yet.