CVE-2026-49265
published medium CVSS 3.1 · 6.8OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| oauthlib | — | oauthlib>= 3.0.0, < 4.0.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | python311-oauthlibnoarch | Advisory build | 3.2.2-150400.12.10.1 | SUSE-SU-2026:4810-1 |
| Ubuntu | bionic | python-oauthlib | Advisory build | 2.0.6-1ubuntu0.1~esm1 | USN-9188-1 |
| SUSE / openSUSE | SLE-15-SP7 | python311-oauthlibnoarch | Advisory build | 3.2.2-150400.12.10.1 | SUSE-SU-2026:4810-1 |
| SUSE / openSUSE | SLE-16 | python313-oauthlibnoarch | Advisory build | 3.2.2-160000.3.1 | SUSE-SU-2026:24246-1 |
| SUSE / openSUSE | SLE-3-SP7 | python311-oauthlibnoarch | Advisory build | 3.2.2-150400.12.10.1 | SUSE-SU-2026:4810-1 |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-oauthlibnoarch | Advisory build | 3.2.2-160000.3.1 | OPENSUSE-SU-2026:22103-1 |
| Ubuntu | bionic | python3-oauthlib | Advisory build | 2.0.6-1ubuntu0.1~esm1 | USN-9188-1 |
| Ubuntu | focal | python-oauthlib | Advisory build | 3.1.0-1ubuntu2+esm1 | USN-9188-1 |
| Ubuntu | focal | python3-oauthlib | Advisory build | 3.1.0-1ubuntu2+esm1 | USN-9188-1 |
| Ubuntu | jammy | python-oauthlib | Advisory build | 3.2.0-1ubuntu0.2 | USN-9188-1 |
| Ubuntu | jammy | python3-oauthlib | Advisory build | 3.2.0-1ubuntu0.2 | USN-9188-1 |
| Ubuntu | noble | python-oauthlib | Advisory build | 3.2.2-1ubuntu0.1 | USN-9188-1 |
| Ubuntu | noble | python3-oauthlib | Advisory build | 3.2.2-1ubuntu0.1 | USN-9188-1 |
| Ubuntu | resolute | python-oauthlib | Advisory build | 3.3.1-1ubuntu0.1 | USN-9188-1 |
| Ubuntu | resolute | python3-oauthlib | Advisory build | 3.3.1-1ubuntu0.1 | USN-9188-1 |
| Ubuntu | stonking | python-oauthlib | Advisory build | 3.3.1-2ubuntu0.1 | USN-9188-1 |
| Ubuntu | stonking | python3-oauthlib | Advisory build | 3.3.1-2ubuntu0.1 | USN-9188-1 |
| Ubuntu | xenial | python-oauthlib | Advisory build | 1.0.3-1ubuntu0.1~esm1 | USN-9188-1 |
| Ubuntu | xenial | python3-oauthlib | Advisory build | 1.0.3-1ubuntu0.1~esm1 | USN-9188-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.8 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| oauthlib | oauthlib | >= 3.0.0, < 4.0.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-208 CWE-208: Observable Timing Discrepancy
References
5- https://github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0
- https://github.com/oauthlib/oauthlib/pull/963
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv
- https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml
Provider assertions
2GitHub_M · cna
OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a9d684f4d1cb5028694cfb55f4045ef6d6b5e1d70902be43c6247350e8ffaa86
- Ingested
- 13 Oct 2026, 16:41:44 UTC
- Source record
- Official CVE record