# CVE-2023-50714: The Oauth2 PKCE implementation is vulnerable

- Severity: Medium 6.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-12-18T19:34:20.000Z
- Modified: 2026-09-10T03:50:09.131Z
- Also known as: GHSA-rw54-6826-c8j5
- Weaknesses: CWE-287, CWE-347, CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- yiisoft yii2-authclient: < 2.2.15
- yiisoft/yii2-authclient (Packagist): before 2.2.15
- yiiframework yii2-authclient: before 2.2.15

## Every score

- GitHub_M: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/yiisoft/yii2-authclient/security/advisories/GHSA-rw54-6826-c8j5> (exploit, third-party-advisory, web)
- <https://github.com/yiisoft/yii2-authclient/commit/721ed974bc44137437b0cdc8454e137fff8db213> (patch, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth1.php#L158> (product, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OAuth2.php#L121> (product, web)
- <https://github.com/yiisoft/yii2-authclient/blob/0d1c3880f4d79e20aa1d77c012650b54e69695ff/src/OpenIdConnect.php#L420> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-50714> (advisory)
- <https://github.com/yiisoft/yii2-authclient> (package)

## Sources

- CVE List: [CVE-2023-50714](https://www.cve.org/CVERecord?id=CVE-2023-50714), CVE Terms of Use, modified 2024-11-27
- GitHub Advisory Database: [GHSA-rw54-6826-c8j5](https://github.com/advisories/GHSA-rw54-6826-c8j5), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2023-50714](https://nvd.nist.gov/vuln/detail/CVE-2023-50714), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-50714 · Whole record: https://cve.day/CVE-2023-50714.json · Rebuilt by cve.day 2026-11-25T22:58:31.636Z
