CVE-2025-4144 — @cloudflare/workers-oauth…
Fix: cloudflare/workers-oauth-provider#27CVE-2025-4144 is a Improper Authentication vulnerability in @cloudflare/workers-oauth-provider. A fix is available for @cloudflare/workers-oauth-provider — see the affected versions and patch details below.
@cloudflare/workers-oauth-provider PKCE bypass via downgrade attack
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-4144.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
How broadly this vulnerability is actually deployed: weekly install volume shows current usage, and reverse-dependency count shows how many other packages break if it stays unpatched.
@cloudflare/workers-oauth-providernpmDescription
Summary
PKCE was implemented in the OAuth implementation in workers-oauth-provider that is part of MCP framework. However, it was found that an attacker could cause the check to be skipped.
Impact
PKCE is a defense-in-depth mechanism against certain kinds of attacks and was an optional extension in OAuth 2.0 which became required in the OAuth 2.1 draft. (Note that the MCP specification requires OAuth 2.1.) This bug completely bypasses PKCE protection.
Patches
Fixed in: https://github.com/cloudflare/workers-oauth-provider/pull/27
We patched up the vulnerabilities in the latest version, v 0.0.5 of the Workers OAuth provider (https://www.npmjs.com/package/@cloudflare/workers-oauth-provider). You'll need to update your MCP servers to use that version to resolve the vulnerability.
Workarounds
None
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | @cloudflare/workers-oauth-provider | all versions | 0.0.5npm install @cloudflare/workers-oauth-provider@0.0.5 |
Affected Products
workers-oauth-providercloudflareDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for @cloudflare/workers-oauth-provider, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update @cloudflare/workers-oauth-provider to 0.0.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-4144 is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Frequently Asked Questions
Is CVE-2025-4144 in your dependencies?
Find it across npm, including transitive dependencies.