CVE-2026-49265: OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison
Vulnerability summary
CVE-2026-49265 is a medium (CVSS 6.8) Observable Timing Discrepancy vulnerability in oauthlib. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 16.4% of scored vulnerabilities.
Not severe (CVSS 6.8, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 7 · Related 7Timeline
- 13-10-2026PublishedVulnerability first disclosed.
- 13-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · WolfiEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · ChainguardEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- NVDNIST6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · DebianEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
EPSS trend
Probability
0.24%
Chance of exploitation in the next 30 days
Percentile
16%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.24% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard83 products
- airflow-2All versions (No fix recorded)
- ansible-operator< 1.42.3-r18
- ansible-operator-fips< 1.42.3-r15
- authentik-2025.12All versions (No fix recorded) | < 2025.12.6-r25
- authentik-2026.2All versions (No fix recorded) | < 2026.2.7-r12
Wolfi17 products
- az< 2.90.0-r2
- dask-kubernetes< 2026.3.0-r15
- datadog-agent-7.77-core-integrationsAll versions (No fix recorded)
- datadog-agent-7.78-core-integrationsAll versions (No fix recorded) | < 7.78.4-r28
- datadog-agent-7.79-core-integrationsAll versions (No fix recorded) | < 7.79.2-r29
Debian1 product
- python-oauthlibAll versions (No fix recorded)
Oauthlib1 product
- oauthlib≥ 3.0.0, < 4.0.0
PyPI1 product
- oauthlib≥ 3.0.0, < 4.0.0
Ubuntu1 product
- python-oauthlibAll versions (No fix recorded) | < 1.0.3-1ubuntu0.1~esm1 | < 2.0.6-1ubuntu0.1~esm1 | < 3.1.0-1ubuntu2+esm1 | < 3.2.0-1ubuntu0.2 | < 3.2.2-1ubuntu0.1 | < 3.3.1-2ubuntu0.1 | < 3.3.1-1ubuntu0.1
6 vendors · 104 products
References
15 links- github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cvWEBX Refsource CONFIRMREPORTAdvisory
- github.com/oauthlib/oauthlibPACKAGE
- pypi.org/project/oauthlibPACKAGE
- github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0X Refsource MISCREPORTFIX
- github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yamlX Refsource MISCWEBREPORTAdvisory