CVE-2025-4143
Last modified
CVE-2025-4143 is a medium-severity vulnerability rated 6.1/10 on the CVSS scale. 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. EPSS estimates a 0.27% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:P/VC:H/VI:N/VA:N/SC:L/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:Amber
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Cloudflare | Workers-Oauth-Provider | 0.0.5 |
References
- https://github.com/cloudflare/workers-oauth-provider/pull/26Issue Tracking, Patch
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2025-4143?
How severe is CVE-2025-4143?
How do I fix CVE-2025-4143?
How Strix Helps
- One Click Account Takeover in GranolaHow a notification link broke out of Electron and led to a one-click account takeover.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-41423Mattermost versions 10.4.x <= 10.4.2, 10.5.x <= 10.5.0, 9.11…4.3
- CVE-2025-41425DuraComm SPM-500 DP-10iN-100-MU is vulnerable to a cross-s…8.1
- CVE-2025-41426Affected Vertiv products contain a stack based buffer overfl…9.8
- CVE-2025-41427WRC-X3000GS, WRC-X3000GSA, and WRC-X3000GSN contain an impro…8.8
- CVE-2025-41428Improper limitation of a pathname to a restricted directory …6.9
- CVE-2025-41429a-blog cms multiple versions neutralize logs improperly. If …9.8
- CVE-2025-41430When BIG-IP SSL Orchestrator is enabled, undisclosed traffic…8.7
- CVE-2025-41431When connection mirroring is configured on a virtual server,…8.7
- CVE-2025-41432in OpenHarmony v5.1.0 and prior versions allow a local attac…7.8
- CVE-2025-41433When a Session Initiation Protocol (SIP) message routing fra…8.7
- CVE-2025-41436Mattermost versions <11.0 fail to properly enforce the "Allo…4.3
- CVE-2025-41437Zohocorp ManageEngine OpManager, NetFlow Analyzer, Network C…4.3
Are you affected by CVE-2025-4143?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
