{"id":"CVE-2025-4144","aliases":["CVE-2025-4144","GHSA-qgp8-v765-qxx9"],"related":[],"kind":"vulnerability","state":"published","title":"PKCE bypass via downgrade attack","summary":"PKCE was implemented in the OAuth implementation in workers-oauth-provider that is part of  MCP framework https://github.com/cloudflare/workers-mcp . However, it was found that an attacker could cause the check to be skipped.\n\n\nFixed in:\n\n \n\n https://github.com/cloudflare/workers-oauth-provider/pull/27 https://github.com/cloudflare/workers-oauth-provider/pull/27 \n\n\nImpact: \n\nPKCE 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"PKCE was implemented in the OAuth implementation in workers-oauth-provider that is part of  MCP framework https://github.com/cloudflare/workers-mcp . However, it was found that an attacker could cause the check to be skipped.\n\n\nFixed in:\n\n \n\n https://github.com/cloudflare/workers-oauth-provider/pull/27 https://github.com/cloudflare/workers-oauth-provider/pull/27 \n\n\nImpact: \n\nPKCE 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.","source":"cvelist"},{"lang":"en","text":"### Summary\nPKCE was implemented in the OAuth implementation in workers-oauth-provider that is part of[ MCP framework](https://github.com/cloudflare/workers-mcp). However, it was found that an attacker could cause the check to be skipped.\n\n### Impact\nPKCE 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.)\nThis bug completely bypasses PKCE protection.\n\n\n### Patches\nFixed in: https://github.com/cloudflare/workers-oauth-provider/pull/27\n\nWe 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.\n\n### Workarounds\nNone","format":"markdown","source":"ghsa"},{"lang":"es","text":"PKCE se implementó en la implementación de OAuth en workers-oauth-provider, que forma parte del framework MCP (https://github.com/cloudflare/workers-mcp). Sin embargo, se detectó que un atacante podría omitir la comprobación. Corregido en: https://github.com/cloudflare/workers-oauth-provider/pull/27 https://github.com/cloudflare/workers-oauth-provider/pull/27 Impacto: PKCE es un mecanismo de defensa en profundidad contra ciertos tipos de ataques y era una extensión opcional en OAuth 2.0, que se convirtió en obligatoria en el borrador de OAuth 2.1. (Tenga en cuenta que la especificación MCP requiere OAuth 2.1). Este error ignora por completo la protección de PKCE.","source":"nvd"}],"published":"2025-05-01T00:50:27.543Z","modified":"2026-06-17T09:32:35.627Z","severity":{"scorer":"cloudflare","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"cloudflare","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Amber","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"git","introduced":"0","fixed":"0.0.5","status":"affected"}],"package":"workers-oauth-provider","repo":"https://github.com/cloudflare/workers-oauth-provider","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.0.5"}],"ecosystem":"npm","package":"@cloudflare/workers-oauth-provider","purl":"pkg:npm/%40cloudflare/workers-oauth-provider","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.0.5"}],"vendor":"cloudflare","product":"workers-oauth-provider","cpe":"cpe:2.3:a:cloudflare:workers-oauth-provider:0.0.5:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/cloudflare/workers-oauth-provider/pull/27","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/cloudflare/workers-oauth-provider/security/advisories/GHSA-qgp8-v765-qxx9","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4144","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/cloudflare/workers-oauth-provider","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"cloudflare","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-05-01T14:30:41.553Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-4144","url":"https://www.cve.org/CVERecord?id=CVE-2025-4144","licence":"CVE Terms of Use","modified":"2025-05-01T15:33:23.092Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qgp8-v765-qxx9","url":"https://github.com/advisories/GHSA-qgp8-v765-qxx9","licence":"CC-BY-4.0","modified":"2025-05-01T17:42:09.225Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-4144","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-4144","licence":"Public domain","modified":"2026-06-17T09:32:35.627Z"}],"updatedAt":"2026-11-25T22:58:57.223Z","epss":{"score":0.00596,"percentile":0.49831,"date":"2026-12-01T12:00:22.000Z"}}