Skip to main content
CVE-2026-49265VulnerabilityPublished Updated

Python oauthlib: From 3.0.0 until 4.0.0, OAuthLib's PKCE checks in

Affects python-oauthlibSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.8 Medium · fixed in 1.0.3-1ubuntu0.1~esm1 : update python-oauthlib when convenient.

Data as of 24 Nov 2026, 21:15 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 15% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 1.0.3-1ubuntu0.1~esm1, 2.0.6-1ubuntu0.1~esm1, 3.1.0-1ubuntu2+esm1 +4
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Oct 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 24 Nov 2026.

What to do

Upgrade to a fixed release listed under Affected software.

Affected software

ProductAffectedFixed in
Ubuntu 26.10python-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=stonkingOther threatsAffected
  • <3.3.1-2ubuntu0.1
Fixed in
  • 3.3.1-2ubuntu0.1
Ubuntu 26.04 LTSpython-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=resoluteOther threatsAffected
  • <3.3.1-1ubuntu0.1
Fixed in
  • 3.3.1-1ubuntu0.1
Ubuntu 24.04 LTSpython-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=nobleOther threatsAffected
  • <3.2.2-1ubuntu0.1
Fixed in
  • 3.2.2-1ubuntu0.1
Ubuntu 22.04 LTSpython-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=jammyOther threatsAffected
  • <3.2.0-1ubuntu0.2
Fixed in
  • 3.2.0-1ubuntu0.2
Ubuntu Pro 20.04 LTSpython-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=esm-infra/focalOther threatsAffected
  • <3.1.0-1ubuntu2+esm1
Fixed in
  • 3.1.0-1ubuntu2+esm1
Ubuntu Pro 18.04 LTSpython-oauthlibpkg:deb/ubuntu/python-oauthlib?arch=source&distro=esm-infra/bionicOther threatsAffected
  • <2.0.6-1ubuntu0.1~esm1
Fixed in
  • 2.0.6-1ubuntu0.1~esm1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

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.

References

Community reviews

Loading reviews…