CVE-2026-49265: oauthlib Observable Timing Discrepancy
Vulnerability summary
CVE-2026-49265 is a medium (CVSS 6.8) Observable Timing Discrepancy vulnerability in oauthlib. EPSS estimates a 0.38% chance of exploitation in the next 30 days, higher than 29.9% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 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.38%
Chance of exploitation in the next 30 days
Percentile
30%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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)
- authentik-2026.2All versions (No fix recorded)
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)
- datadog-agent-7.79-core-integrationsAll versions (No fix recorded)
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)
6 vendors · 104 products
References
13 links- github.com/oauthlib/oauthlibPACKAGE
- pypi.org/project/oauthlibPACKAGE
- github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yamlX Refsource MISCWEBREPORT