Vulnerability
CVE-2026-49265
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.
174 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
AZL-108045
CVE-2026-49265 affecting package python-oauthlib for versions less than 3.2.2-4
- CGA-2fx9-2vh4-xqvf
- CGA-2m49-498r-rmqg
- CGA-2r82-rch9-fjq2
- CGA-2rwx-6w9w-p4r3
- CGA-2w44-gcc9-g7qp
- CGA-2wwq-c976-jqr3
- CGA-2x3c-6xj9-8q67
- CGA-354r-2q97-hx3p
- CGA-36pv-r9mp-rjjh
- CGA-382r-mpjv-448f
- CGA-389c-phx3-4r7h
- CGA-3jvm-pmjm-2698
- CGA-3vq5-px4c-4g8q
- CGA-422w-x95c-xh94
- CGA-42ch-3xgq-3v2q
- CGA-42mp-272m-g66p
- CGA-4943-vx8w-5fhx
- CGA-4fg5-hcgg-8c7r
- CGA-4h64-w93c-j3m3
- CGA-4h6v-w33m-9qvf
- CGA-4jp8-876m-cg58
- CGA-4q6h-939g-x255
- CGA-5333-835v-5v8j
- CGA-55j5-j9px-77qh
- CGA-55w5-jfr2-3mfv
- CGA-5h6f-mpc8-45fp
- CGA-5j26-j3c8-h9q2
- CGA-5q35-m28p-c27f
- CGA-5xw4-qwwc-mq6c
- CGA-64fq-4856-rh4f
- CGA-6ghc-r6rp-prr6
- CGA-6gpx-g269-hpw9
- CGA-6hcm-q683-5w9x
- CGA-6vf2-rp4r-pvwh
- CGA-6vrg-pm8w-8j93
- CGA-6x7m-xh36-3v6v
- CGA-6xgj-8fm9-g4x9
- CGA-73mm-34pj-xvv8
- CGA-77vf-8m69-xvhm
- CGA-79xp-8f2c-7x5w
- CGA-7f96-x7wc-gqqg
- CGA-7fg9-wxhc-mg7j
- CGA-7m2r-cwq9-5f77
- CGA-83f2-fjvw-h7ww
- CGA-87gp-7wqp-xjrx
- CGA-8c64-7c2g-fm2p
- CGA-8hw2-66r4-9rjg
- CGA-8rmg-j7gr-978m
- CGA-8v2x-gwq6-vrmg
- CGA-93r5-3j2j-pvc8
- CGA-95gx-qjpg-6r87
- CGA-95rq-c459-5frm
- CGA-9664-q6g2-96r2
- CGA-96m8-qmvr-36m9
- CGA-9grq-fqcp-f8x9
- CGA-9hr6-q6vp-7745
- CGA-9p6f-fvxw-5w62
- CGA-9wx7-239h-wcx7
- CGA-c2hm-rm7q-pj26
- CGA-c4c9-x3gc-q692
- CGA-c54c-9cp2-r95h
- CGA-c6jg-h8wx-45qq
- CGA-cfh7-w4vf-2jv7
- CGA-cgcf-gwxq-37c3
- CGA-cgwr-vc2c-28rj
- CGA-cp9c-mgch-xrq4
- CGA-cqgx-76q8-qxp4
- CGA-f53r-5r59-c935
- CGA-f69f-wg9v-v7c7
- CGA-f7vp-59v8-9jf6
- CGA-f98w-6h5p-rx9m
- CGA-f99w-m8fw-xg85
- CGA-f9p5-57f3-rp78
- CGA-fmfq-x2rj-6m95
- CGA-frjh-7x7w-86g6
- CGA-frxp-35fc-5864
- CGA-fv22-xmj6-7pjp
- CGA-fx7x-27hx-rjxr
- CGA-g3fw-r29p-m3rg
- CGA-g3xf-9hg2-v2pj
- CGA-gcfq-h8xx-8hv7
- CGA-gf9m-j3pj-rwpg
- CGA-gqw4-78xm-2594
- CGA-h292-mm5f-mp6q
- CGA-h6pr-4h82-2mq4
- CGA-h7pc-5mg2-wgh3
- CGA-hhcm-xp75-m4pg
- CGA-hm9p-9j97-h232
- CGA-hmpm-6286-gjjh
- CGA-hmwg-cp4h-rx84
- CGA-hpc9-m8fw-88vc
- CGA-hpfp-698g-qv3j
- CGA-hr5q-jmg8-5639
- CGA-hv49-hwj5-3jw8
- CGA-j45g-cjh9-g69c
- CGA-j7x4-p7qw-h764
- CGA-jfw5-3gwj-9wg7
- CGA-jrpq-3xr5-wqwc
- CGA-m33x-3gmj-c85p
Showing the first 100. The API lists them all: /api/v1/vulnerabilities/CVE-2026-49265.
References
- https://github.com/oauthlib/oauthlib/commit/74664d3fe037a354e180e305135c6bab1747a6b0
- https://github.com/oauthlib/oauthlib/pull/963
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv
- https://github.com/pypa/advisory-database/tree/main/vulns/oauthlib/PYSEC-2026-4114.yaml