1. Accueil
  2. Vulnérabilités
  3. CVE-2026-49265

CVE-2026-49265

OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison

Publiée le 13 oct. 2026 · modifiée le 16 oct. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Faible 34/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

oauthlib (1 ligne(s))
oauthlib
ProduitVersionsCorrigé dansSource
oauthlib Versions non précisées — CNA (éditeur ou attributeur)
Pypi (1 ligne(s))
Pypi
ProduitVersionsCorrigé dansSource
oauthlib de 3.0.0 (inclus) à 4.0.0 (exclu) 4.0.0 GitHub Advisory

Correctif

Mise à jour — PyPI/oauthlib 4.0.0source officielle

Source : GitHub Advisory

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)
  2. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1385)
  3. — Avis du CERT-FR (certfr:CERTFR-2026-AVI-1486)

Avis CERT-FR

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
CNA (éditeur ou attributeur)
Score CVSS
CNA (éditeur ou attributeur)
Faiblesse (CWE)
CNA (éditeur ou attributeur)
Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N (CVSS 3.1, CNA:GitHub_M)
Faiblesse
CWE-208 · Autre (CWE-208)

Comment sont obtenues et calculées ces données