Skip to content
MediumVulnerability

CVE-2025-4143: workers-oauth-provider skips redirect_uri allowlist check in auth

Identifier
CVE-2025-4143
Published
Record updated
View JSON
Affected
  • @cloudflare/workers-oauth-provider < 0.0.5
Fixed in
0.0.5
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.3%Estimated probability that this CVE is exploited in the next 30 days, from the FIRST Exploit Prediction Scoring System. Read on .

Summary

The OAuth implementation in workers-oauth-provider, part of the MCP framework, did not check redirect_uri against the client's allowed redirect URI list during the authorization flow, though it did check during code exchange. If a victim had previously authorized a server built on this library, an attacker who tricks the victim into visiting a malicious site could steal the victim's OAuth credentials and impersonate them, provided the application auto-approves re-authorization for previously authorized clients.

Mitigation

Fixed in https://github.com/cloudflare/workers-oauth-provider/pull/26