oauthlib

A generic, spec-compliant, thorough implementation of the OAuth request-signing logic

4.0.1Latest, 31 Oct 2026
266MDownloads, last month
0Advisories on the latest
8Advisories, all versions
BSD-3-ClauseLicence
3KStars
8.0/10OpenSSF Scorecard

Known advisories

Severity Advisory Fix Published
High OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client CVE-2026-118669 Fixed in 4.0.0 30 Oct 2026
High OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow CVE-2026-49272 Fixed in 4.0.1 27 Oct 2026
Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation CVE-2026-49264 Fixed in 4.0.0 1 Oct 2026
Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208) CVE-2026-49265 Fixed in 4.0.0 1 Oct 2026
Moderate Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation CVE-2026-49264 Fixed in 4.0.0 29 Sep 2026
Moderate Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208) CVE-2026-49265 Fixed in 4.0.0 29 Sep 2026
Moderate OAuthLib vulnerable to DoS when attacker provides malicious IPV6 URI CVE-2022-36087 Fixed in 3.2.2 16 Sep 2022
PYSEC-2022-269 CVE-2022-36087 Fixed in 3.2.1 9 Sep 2022

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 3 Dec 2026.