CVE-2026-49265Oauthlib vulnerability
CVSS score
6.8
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.24%
0.24% chance of exploitation in the next 30 days, higher than 15.5% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running Oauthlib and compare its version with the affected versions.
Update to a fixed version
- Update Oauthlib to 4.0.0 or later.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N
Affected products
| Affected products | Versions |
|---|---|
| oauthlib Oauthlib | >= 3.0.0, < 4.0.0 |
Weakness
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-49265 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-49265?
CVE-2026-49265 has a CVSS 3.1 base score of 6.8 (medium).
Which versions are affected?
Oauthlib Oauthlib (>= 3.0.0, < 4.0.0)
Is there a patch for CVE-2026-49265?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0
- github.com/oauthlib/oauthlib/pull/963
- github.com/oauthlib/oauthlib/releases/tag/v4.0.0
- github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv
- github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.