CVE-2026-49265: Oauthlib · Timing Attack Vulnerability in PKCE code_verifier Comparison
Affects ggshieldSource GCVE Database
Not known to be exploited · CVSS 6.8 Medium : upgrade to 1.57.0 when convenient.
Data as of 26 Nov 2026, 21:22 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 9% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.57.0, 4.0.0
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 30 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Nov 2026.
What to do
Upgrade ggshield to 1.57.0; oauthlib to 4.0.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewggshieldpkg:brew/ggshieldOther threats | Affected
| Fixed in
|
PyPIoauthlibpkg:pypi/oauthlibOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in oauthlib version 1.57.0 that replaces the vulnerable string comparison with a constant-time comparison function (hmac.compare_digest()). Users should upgrade to version 1.57.0 or later to remediate this vulnerability. No additional mitigations are indicated by the vendor advisory.
Description
A timing side-channel vulnerability exists in oauthlib's PKCE implementation for the Authorization Code Grant flow. The vulnerable code uses Python's standard string equality operator (==) instead of a constant-time comparison, allowing attackers to measure timing differences and potentially recover the code_verifier. This flaw affects oauthlib versions from 1.19.1 up to but not including 1.57.0. The issue is mitigated by replacing the comparison with a constant-time function such as hmac.compare_digest().
References
- github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-49265 (opens in a new tab)
- github.com/oauthlib/oauthlib/pull/963 (opens in a new tab)
- github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950 (opens in a new tab)
- github.com/oauthlib/oauthlib (opens in a new tab)
- github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml (opens in a new tab)