Ubuntu patches multiple OAuthLib vulnerabilities including remote code execution
Four security vulnerabilities in the python-oauthlib package, ranging from account takeover to remote code execution, have been addressed across multiple Ubuntu releases.
Summary
Canonical has released security updates for the python-oauthlib package to address four distinct vulnerabilities. These flaws affect various Ubuntu distributions, including the latest 26.10 release and several Long Term Support (LTS) versions ranging from 20.04 to 26.04 LTS.
The vulnerabilities impact the core OAuth request-signing logic, potentially allowing remote attackers to execute arbitrary code, bypass client identity validation, or perform account takeovers via non-constant-time PKCE comparisons. Users are advised to perform a standard system update to apply the patched package versions.
Vulnerability breakdown and affected versions
- Remote Code Execution (CVE-2026-49264): A flaw in how the library handles JSONP callback parameters within the token revocation endpoint could allow an attacker to execute arbitrary code in a client application.
- Account Takeover (CVE-2026-49265): The PKCE code verifier comparison was found to be non-constant-time, which could enable a remote attacker to obtain access tokens.
- Authorization Bypass (CVE-2026-118669): Incorrect validation of client identity allows an attacker to obtain tokens authorized under a different client, bypassing intended authorization boundaries.
- Device Flow Flaw (CVE-2026-49272): A validation error in the device authorization workflow allows for token acquisition without completing the required device authorization; this specifically affects Ubuntu 26.10 and 26.04 LTS.
Why it matters
Since OAuthLib is a widely used implementation for OAuth request-signing logic in Python, these vulnerabilities pose a significant risk to any Linux-based applications or services relying on it for identity management. Developers and system administrators using Ubuntu must ensure their Python environments are updated to mitigate risks of unauthorized access and code execution.
What to do
- Perform a standard system update to apply the patched python3-oauthlib package.
- Update Ubuntu 26.10 to python3-oauthlib version 3.3.1-2ubuntu0.1.
- Update Ubuntu 26.04 LTS to python3-oauthlib version 3.3.1-1ubuntu0.1.
- Update Ubuntu 24.04 LTS to python3-oauthlib version 3.2.2-1ubuntu0.1.
Original reference: ubuntu.com →