{"id":"CVE-2023-50714","aliases":["CVE-2023-50714","GHSA-rw54-6826-c8j5"],"related":[],"kind":"vulnerability","state":"published","title":"The Oauth2 PKCE implementation is vulnerable","summary":"yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth2 PKCE implementation is vulnerable in 2 ways. First, the `authCodeVerifier` should be removed after usage (similar to `authState`). Second, there is a risk for a `downgrade attack` if PKCE is being relied on for CSRF protection. Version 2.2.15 contains a patch for the issue. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"yii2-authclient is an extension that adds OpenID, OAuth, OAuth2 and OpenId Connect consumers for the Yii framework 2.0. In yii2-authclient prior to version 2.2.15, the Oauth2 PKCE implementation is vulnerable in 2 ways. First, the `authCodeVerifier` should be removed after usage (similar to `authState`). Second, there is a risk for a `downgrade attack` if PKCE is being relied on for CSRF protection. Version 2.2.15 contains a patch for the issue. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nOriginal Report:\n\n> The Oauth2 PKCE implementation is vulnerable in 2 ways:\n> 1. The `authCodeVerifier` should be removed after usage (similar to 'authState')\n> 2. There is a risk for a \"downgrade attack\" if PKCE is being relied on for CSRF protection.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n2.2.15\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nnot known yet.\n\n### References\n_Are there any links users can visit to find out more?_","format":"markdown","source":"ghsa"},{"lang":"es","text":"yii2-authclient es una extensión que agrega consumidores OpenID, OAuth, OAuth2 y OpenId Connect para el framework Yii 2.0. En yii2-authclient anterior a la versión 2.2.15, la implementación de Oauth2 PKCE es vulnerable de 2 maneras. Primero, \"authCodeVerifier\" debe eliminarse después de su uso (similar a \"authState\"). En segundo lugar, existe el riesgo de un \"downgrade attack\" si se confía en PKCE para la protección CSRF. La versión 2.2.15 contiene un parche para el problema. No hay workarounds disponibles.","source":"nvd"}],"published":"2023-12-18T19:34:20.000Z","modified":"2026-09-10T03:50:09.131Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-287","CWE-347","CWE-918"],"affected":[{"ranges":[{"version":"< 2.2.15","status":"affected"}],"vendor":"yiisoft","product":"yii2-authclient","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.2.15"}],"ecosystem":"Packagist","package":"yiisoft/yii2-authclient","purl":"pkg:composer/yiisoft/yii2-authclient","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.2.15"}],"vendor":"yiiframework","product":"yii2-authclient","cpe":"cpe:2.3:a:yiiframework:yii2-authclient:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-rw54-6826-c8j5","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/commit/721ed974bc44137437b0cdc8454e137fff8db213","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420","tags":["product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50714","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yiisoft/yii2-authclient","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-11-27T15:42:08.944Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-50714","url":"https://www.cve.org/CVERecord?id=CVE-2023-50714","licence":"CVE Terms of Use","modified":"2024-11-27T15:43:11.763Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rw54-6826-c8j5","url":"https://github.com/advisories/GHSA-rw54-6826-c8j5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:09.131Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-50714","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50714","licence":"Public domain","modified":"2026-06-17T06:39:50.320Z"}],"updatedAt":"2026-11-25T22:58:31.636Z","epss":{"score":0.00492,"percentile":0.43848,"date":"2026-12-01T12:00:22.000Z"}}