mcp-cve-project

CVE-2025-4143 | Cloudflare workers-mcp (OAuth implementation flaw) | Medium | 6.1

CVE Information

Field Value
CVE / NVD CVE-2025-4143
EPSS score 0.002680000 (FIRST EPSS, 2026-06-30)
Date (index) 2025-05-28
Affected product (index) Cloudflare workers-mcp (OAuth implementation flaw)
GHSA ID GHSA-4pc9-x2fx-p7vj
OWASP MCP Top 10 (2025) MCP07 — Insufficient Authentication & Authorization
Published / disclosed 2025-05-28
CVSS score 6.1 MEDIUM CVSS v3.1 (NVD)
CWE CWE-601
Affected versions @cloudflare/workers-oauth-provider < 0.0.5
Fixed versions 0.0.5
Fix status Patched
Exploit status Public CVE record
Component @cloudflare/workers-oauth-provider
Ecosystem npm
Notes Indexed from 2026-05-29 gap review backlog. Re-check NVD before compliance reporting.

CVE Breakdown


What is the vulnerability?

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.

Attack prerequisites / exposure

Exposure depends on deployment: network reachability, ability to influence MCP configuration or tool arguments, and whether the MCP server/client runs with access to sensitive host resources, credentials, or internal networks.

CVE is because of what bug?

Confirm exact weakness in the NVD record and linked advisory. Primary CWE mapping: CWE-601.

MCP-specific impact / why it matters

MCP clients and servers bridge model-driven workflows to privileged tools and local execution. Weaknesses in auth, transport trust, or command handling can let untrusted content or users reach host execution, data exfiltration, or unauthorized tool invocation.

Where was the bug? (source + snippet)

Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory diff.

Fix / Remediation

Upgrade to the vendor-fixed version where available. Restrict MCP components to trusted users and networks; validate tool inputs; run with least privilege.

Upstream fix (open source)

Workarounds / mitigations

Exploit / PoC

Public advisories exist; do not host weaponized payloads in this repository.

Detection / verification

Patch

See NVD references and vendor release notes for CVE-2025-4143.