Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. oauthlib
  4. ›
  5. CVE-2026-49265

CVE-2026-49265: Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)

September 29, 2026

A timing side-channel vulnerability exists in the PKCE (RFC 7636) implementation of the Authorization Code Grant flow. The code_challenge_method_plain function uses Python’s standard == operator for string comparison instead of a constant-time comparison function, potentially allowing timing-based attacks.

References

  • github.com/advisories/GHSA-xpv3-w29h-x7cv
  • github.com/oauthlib/oauthlib/commit/40b0ab56da3682c2484a4b78bbff309f8025d950
  • github.com/oauthlib/oauthlib/pull/963
  • github.com/oauthlib/oauthlib/security/advisories/GHSA-xpv3-w29h-x7cv
  • nvd.nist.gov/vuln/detail/CVE-2026-49265

Code Behaviors & Features

Detect and mitigate CVE-2026-49265 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 4.0.0

Fixed versions

  • 4.0.0

Solution

Upgrade to version 4.0.0 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-208: Observable Timing Discrepancy

Source file

pypi/oauthlib/CVE-2026-49265.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 12:17:09 +0000.