Summary
It was discovered that OAuthLib incorrectly handled JSONP callback
parameters in the token revocation endpoint. A remote attacker could
possibly use this issue to execute arbitrary code in a client
application. (CVE-2026-49264)
Elvin Latifli discovered that OAuthLib incorrectly compared PKCE code
verifiers, using a comparison that was not constant-time. A remote
attacker could possibly use this issue to obtain access tokens,
resulting in an account takeover. This issue only affected Ubuntu 26.10,
Ubuntu 26.04 LTS, Ubuntu 24.04 LTS, Ubuntu 22.04 LTS, and Ubuntu 20.04
LTS. (CVE-2026-49265)
Strick Sheng discovered that OAuthLib incorrectly validated the client
identity. A remote attacker could possibly use this issue to obtain
tokens authorized under another client, bypassing token authorization.
(CVE-2026-118669)
Kyle Hekhuis discovered that OAuthLib incorrectly validated device codes
in the device authorization workflow. A remote attacker could possibly
use this issue to obtain a token without completing device authorization.
This issue only affected Ubuntu 26.10 and Ubuntu 26.04 LTS.
(CVE-2026-49272)
Fixed packages 7
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | python-oauthlib | 3.2.0-1ubuntu0.2 |
| Ubuntu · 24.04 LTS 24.04:LTS | python-oauthlib | 3.2.2-1ubuntu0.1 |
| Ubuntu · 26.04 LTS 26.04:LTS | python-oauthlib | 3.3.1-1ubuntu0.1 |
| Ubuntu · 26.10 | python-oauthlib | 3.3.1-2ubuntu0.1 |
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | python-oauthlib | 1.0.3-1ubuntu0.1~esm1 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | python-oauthlib | 2.0.6-1ubuntu0.1~esm1 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | python-oauthlib | 3.1.0-1ubuntu2+esm1 |
Vulnerabilities 4
-
High 8.5
OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow
OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 3.3.0 until 4.0.1, OAuthLib's RFC 8628 device workflow does not require DeviceCodeGrant.validate_token_request to check that the device_code parameter is present and valid.…
-
High 8.4CVE-2026-118669 Public exploit
OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client
OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. Prior to 4.0.0, the client_credentials and Resource Owner Password Credentials token grant handlers can authenticate request.client as one confidential client while retaining an…
-
Medium 6.8
OAuthLib: Timing Attack Vulnerability in PKCE code_verifier Comparison
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…
-
Medium 6.1
OAuthLib: Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation
OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. From 0.6.1 until 4.0.0, OAuthLib's RevocationEndpoint in oauthlib/oauth2/rfc6749/endpoints/revocation.py reflects an unvalidated callback request parameter into success and erro…