{"id":"CVE-2023-50714","published":"2023-12-22T18:30:03Z","modified":"2024-11-27T15:43:11Z","title":"The Oauth2 PKCE implementation is vulnerable","vendor":"yiisoft","product":"yii2-authclient","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0059,"percentile":0.42139,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"},{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-rw54-6826-c8j5","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/yiisoft/yii2-authclient/commit/721ed974bc44137437b0cdc8454e137fff8db213","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121","tags":["x_refsource_MISC"]},{"url":"https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":8.43},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"yiisoft","affectedVersions":[{"vendor":"yiisoft","product":"yii2-authclient","versions":["< 2.2.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-11-27T15:42:08.944505Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yiisoft/yii2-authclient","vulnerableRanges":["<2.2.15"],"patched":["2.2.15"],"from":["GHSA-rw54-6826-c8j5"],"provenance":"source"}],"summary":{"text":"The OAuth2 PKCE implementation in the yii2-authclient extension (yiisoft) for the Yii 2.0 framework is flawed in two ways: the authCodeVerifier is not removed after use, and PKCE can be downgraded when relied on for CSRF protection. An attacker who can reach the affected application over the network, with user interaction required (AC:H indicates the attack is considered high complexity), can compromise confidentiality and integrity through these flaws.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:42:54Z"},"euvd":{"id":"EUVD-2023-3295","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-yiisoft-yii2-authclient-cve-2023-50708","parents":[{"from":"CVE-2023-50708","to":"CVE-2023-50714","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/OAuth2.php"],"commits":["https://github.com/yiisoft/yii2-authclient/commit/dabddf2154ab7e7703740205a069202554089248","https://github.com/yiisoft/yii2-authclient/commit/721ed974bc44137437b0cdc8454e137fff8db213"],"basis":"shared function","functions":["fetchAccessToken"]}]}]}}