← AI agent vulnerabilities

CVE-2025-4143

workers-oauth-provider

6.1
Severity
Medium
Published
May 1, 2025
Last modified
June 17, 2026

The OAuth implementation in workers-oauth-provider that is part of MCP framework https://github.com/cloudflare/workers-mcp , did not correctly validate that redirect_uri was on the allowed list of redirect URIs for the given client registration. Fixed in:  https://github.com/cloudflare/workers-oauth-provider/pull/26 https://github.com/cloudflare/workers-oauth-provider/pull/26 Impact: Under certain circumstances (see below), if a victim had previously authorized with a server built on workers-oath-provider, and an attacker could later trick the victim into visiting a malicious web site, then attacker could potentially steal the victim's credentials to the same OAuth server and subsequently impersonate them. In order for the attack to be possible, the OAuth server's authorized callback must be designed to auto-approve authorizations that appear to come from an OAuth client that the victim has authorized previously. The authorization flow is not implemented by workers-oauth-provider; it is up to the application built on top to decide whether to implement such automatic re-authorization. However, many applications do implement such logic. Note: It is a basic, well-known requirement that OAuth servers should verify that the redirect URI is among the allowed list for the client, both during the authorization flow and subsequently when exchanging the authorization code for an access token. workers-oauth-provider implemented only the latter check, not the former. Unfortunately, the former is the much more important check. Readers who are familiar with OAuth may recognize that failing to check redirect URIs against the allowed list is a well-known, basic mistake, covered extensively in the RFC and elsewhere. The author of this library would like everyone to know that he was, in fact, well-aware of this requirement, thought about it a lot while designing the library, and then, somehow, forgot to actually make sure the check was in the code. That is, it's not that he didn't know what he was doing, it's that he knew what he was doing but flubbed it.

CVSS vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Weakness

References

CVE-2025-4143 on NVD

Listed in

MediumMCP servers

Related CVEs

Dec 4
CVE-2026-1453598.1

MCPJungle 0.1.11 through 0.4.7 contains a missing authentication vulnerability in the POST /init endpoint that allows unauthenticated attackers to initialize uninitialized enterprise-mode servers.

Dec 4
CVE-2026-1453586.5

markdownify-mcp before 2.0.0 contains an uncontrolled resource consumption vulnerability that allows attackers to exhaust server memory or hang requests by supplying URLs to slow or oversized responses.

Dec 4
CVE-2026-1450559.8

PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, praisonai-browser, praisonai-code, praisonai-deploy, praisonai-mcp and praisonai-sandbox before 0.2.0…

Dec 4
CVE-2026-1449605.4

n8n-mcp before 2.98.1 contains a prototype pollution vulnerability that allows MCP clients to modify Object.prototype by supplying reserved keys like __proto__ as node names, connection types, or parameter…

Dec 4
CVE-2026-1444536.5

AgentCrew before 0.25.1 contains a server-side request forgery and local file read vulnerability that allows malicious MCP servers to fetch internal URLs and local files by supplying crafted $ref values in…

Dec 4
CVE-2026-1414889.2

The AIDB MCP endpoint (edb-endpoints) in AIDB 7.7.0 through 7.8.0 authenticates HTTP Basic credentials by opening a Postgres connection with them, always from the database host over the local Unix socket as…