# oauthlib (PyPI)

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

- Latest: 4.0.1 (2026-10-31)
- Licence: BSD-3-Clause
- Downloads: 265988499 last month
- Advisories on the latest version: 0

- CVE-2026-118669 HIGH: OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client Fixed in 4.0.0.
- CVE-2026-49272 HIGH: OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow Fixed in 4.0.1.
- CVE-2026-49264 : Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation Fixed in 4.0.0.
- CVE-2026-49265 : Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208) Fixed in 4.0.0.
- CVE-2026-49264 MODERATE: Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation Fixed in 4.0.0.
- CVE-2026-49265 MODERATE: Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208) Fixed in 4.0.0.
- CVE-2022-36087 MODERATE: OAuthLib vulnerable to DoS when attacker provides malicious IPV6 URI Fixed in 3.2.2.
- CVE-2022-36087 :  Fixed in 3.2.1.

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