# CVE-2026-49265: OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison

- 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.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2026-09-29T17:56:31.000Z
- Modified: 2026-10-16T20:04:29.760Z
- Also known as: GHSA-xpv3-w29h-x7cv, PYSEC-2026-4114
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 3.0.0 until 4.0.0, OAuthLib's PKCE checks in oauthlib/oauth2/rfc6749/grant_types/authorization_code.py compare attacker-supplied code_verifier values with stored challenges using ordinary string equality in code_challenge_method_plain and code_challenge_method_s256. Because the comparison can return after a length difference or the first mismatching character, repeated token endpoint measurements can reveal common-prefix timing information that could potentially allow recovery of the code_verifier, unauthorized access-token acquisition, and account takeover. Practical exploitation requires an intercepted, single-use authorization code and enough measurements to overcome real-world network noise; the local timing benchmark does not establish practical remote account takeover, so the weakness remains a defense-in-depth concern. This issue is fixed in version 4.0.0.

(As written by CVE List.)

## Affected

- oauthlib oauthlib: >= 3.0.0, < 4.0.0
- oauthlib (PyPI): from 3.0.0 before 4.0.0

## 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`
- PyPA Advisory Database: 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`

## References

- <https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv> (web)
- <https://github.com/oauthlib/oauthlib/pull/963> (web)
- <https://github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0>
- <https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0>
- <https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-49265> (advisory)
- <https://github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950> (web)
- <https://github.com/oauthlib/oauthlib> (package)
- <https://pypi.org/project/oauthlib> (package)
- <https://github.com/advisories/GHSA-xpv3-w29h-x7cv> (advisory)

## Sources

- CVE List: [CVE-2026-49265](https://www.cve.org/CVERecord?id=CVE-2026-49265), CVE Terms of Use, modified 2026-10-13
- GitHub Advisory Database: [GHSA-xpv3-w29h-x7cv](https://github.com/advisories/GHSA-xpv3-w29h-x7cv), CC-BY-4.0, modified 2026-10-13
- NVD: [CVE-2026-49265](https://nvd.nist.gov/vuln/detail/CVE-2026-49265), Public domain, modified 2026-10-16
- PyPA Advisory Database: [PYSEC-2026-4114](https://osv.dev/vulnerability/PYSEC-2026-4114), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-49265 · Whole record: https://cve.day/CVE-2026-49265.json · Rebuilt by cve.day 2026-11-25T22:59:43.846Z
