On this page (7 sections)

Ubuntu has published USN-9188-1, a security notice covering several vulnerabilities in OAuthLib, the Python library many web applications use to build OAuth 2 providers and clients. The most serious issue, CVE-2026-118669, can let a low-privilege OAuth client obtain tokens under another client's grants and scopes.

If you run a Python application that issues OAuth tokens, or an Ubuntu server with python3-oauthlib installed, you should check your version and update. The upstream fix is OAuthLib 4.0.0.

What Ubuntu fixed

USN-9188-1 was published on 23 November 2026 and bundles four OAuthLib issues, each reported by a different researcher according to Ubuntu. They are different weakness classes, so the exposure for each depends on how your application uses the library.

OAuthLib issues in USN-9188-1
CVEWeaknessScoreAffected upstream versions
CVE-2026-118669Client identity mismatch in token grants (CWE-863)8.4 HighBefore 4.0.0
CVE-2026-49265Timing side channel in PKCE check (CWE-208)6.8 Medium3.0.0 up to before 4.0.0
CVE-2026-49264JSONP callback injection in revocation (CWE-79)6.1 Medium0.6.1 up to 3.3.1
CVE-2026-49272Device code validation in device authorization flowNot given in the researchUbuntu says only Ubuntu 26.10 and 26.04 LTS are affected

Technical details

CVE-2026-118669: grants checked under the wrong client

According to the GitHub advisory, the client_credentials and Resource Owner Password Credentials token handlers authenticate one client but can then run grant type and scope validation using a client_id supplied in the request body. A lower-privilege confidential client could therefore have its request judged as if it were another client, potentially receiving tokens with grants or scopes it should not have.

The advisory limits the impact: the attacker needs valid credentials for one confidential client, another client must have broader permissions, and the application's validator must rely on the client_id argument that OAuthLib passes in. Validators that authorize only from request.client may not be affected. Ubuntu's notice credits Strick Sheng with the discovery.

CVE-2026-49265: PKCE timing side channel

The PKCE check compares the code_verifier with the stored challenge using ordinary string equality, which can return early on a length difference or the first mismatching character. The advisory notes that practical exploitation needs an intercepted, single-use authorization code and enough measurements to beat network noise. The CVE record says the local benchmark does not establish practical remote account takeover and treats it as a defense-in-depth concern. The suggested fix upstream is a constant-time comparison.

CVE-2026-49264: JSONP callback reflection

When a deployment explicitly sets enable_jsonp=True, the RevocationEndpoint reflects the callback parameter into its response without restricting it to a legal function name, per the GitHub advisory. A browser application that loads the response as trusted JSONP and lets an attacker influence the callback could run attacker-controlled script in its own origin. The feature is off by default, so only deployments that opted in are affected.

CVE-2026-49272: device authorization

Ubuntu reports that OAuthLib incorrectly validated device codes in the device authorization workflow, which a remote attacker could possibly use to obtain a token without completing device authorization. The research does not include a CVSS score or upstream version range for this one, so treat the detail as limited to Ubuntu's description.

Who is affected

  • Teams running an OAuth 2 authorization server on OAuthLib, directly or through a framework that wraps it, are the main audience for CVE-2026-118669 and CVE-2026-49265.
  • Anyone who enabled JSONP on the revocation endpoint is exposed to CVE-2026-49264. If you never set enable_jsonp, you are not affected by that one.
  • Ubuntu systems with python3-oauthlib installed, including as a dependency of other packages. Fixed packages exist for 16.04 LTS through 26.10, with 20.04, 18.04 and 16.04 fixes delivered through Ubuntu Pro.
  • Applications that only use OAuthLib as a client are less likely to be hit by the provider-side token issues, but they should still update.

How to check your exposure

On Ubuntu, this read-only command shows the installed python3-oauthlib package version. Compare it with the fixed versions in the table below.

Check the installed OAuthLib package (Ubuntu)Shell
apt list --installed python3-oauthlib

For applications installed with pip, including virtual environments and containers, run this inside the same environment. A version below 4.0.0 is affected by at least CVE-2026-118669.

Check the pip-installed OAuthLib version (run inside the app's environment)Shell
pip show oauthlib
Fixed python3-oauthlib versions from USN-9188-1
Ubuntu releaseFixed version
26.103.3.1-2ubuntu0.1
26.04 LTS3.3.1-1ubuntu0.1
24.04 LTS3.2.2-1ubuntu0.1
22.04 LTS3.2.0-1ubuntu0.2
20.04 LTS3.1.0-1ubuntu2+esm1 (Ubuntu Pro)
18.04 LTS2.0.6-1ubuntu0.1~esm1 (Ubuntu Pro)
16.04 LTS1.0.3-1ubuntu0.1~esm1 (Ubuntu Pro, Legacy Support add-on)

Also search your code for enable_jsonp and for validators that implement validate_grant_type or validate_scopes, since those determine which of the issues apply to you.

What to do now

Caution. Updating a library or restarting services can interrupt logins and token issuance. Test in staging and schedule a short window for production authorization servers.
  1. Inventory every host, container and virtual environment that includes OAuthLib.
  2. On Ubuntu, apply the standard system update to get the fixed python3-oauthlib package; Ubuntu notes a normal update makes the necessary changes.
  3. For pip-managed applications, upgrade to OAuthLib 4.0.0 or later and rebuild any container images.
  4. Restart the application or service so the new library is loaded, then confirm the version again.
  5. Review your RequestValidator: authorize grants and scopes from the authenticated request.client rather than a client_id taken from the request body.
  6. If you enabled JSONP on the revocation endpoint, consider whether you still need it, and make sure callback values are never attacker-influenced in your client pages.
  7. On Ubuntu 20.04, 18.04 or 16.04, enable Ubuntu Pro to receive the fixes.

This command updates the package on Ubuntu. Run it as root or with sudo, and expect the new version from the table above.

Update python3-oauthlib on UbuntuShell
sudo apt update && sudo apt install --only-upgrade python3-oauthlib

This command upgrades OAuthLib in a pip environment. Run it inside the application's virtual environment and re-run pip show oauthlib to confirm 4.0.0 or later.

Upgrade OAuthLib with pip (inside the app's environment)Shell
pip install --upgrade "oauthlib>=4.0.0"
Check that your other dependencies allow OAuthLib 4.0.0. A major version bump can conflict with pinned requirements in frameworks or integrations, so run your tests before deploying.

Detection and monitoring afterwards

The research reports no active exploitation, but token authorization bugs leave little obvious trace. Review token endpoint logs for requests where the client_id in the body differs from the client that authenticated, and for tokens issued with unexpectedly broad scopes. Watch for unusual bursts of requests to the token endpoint, which could point to timing probing.

Keep an eye on your site's exposed surface as well. A free security headers check can confirm that a content security policy is in place, which limits the damage from injected script, and certificate and header-change monitoring helps you notice unexpected changes on your authorization endpoints. For broader guidance, see what a WAF does.

Timeline

  • 28 September 2026: the JSONP and PKCE advisories were published on GitHub, per the advisory pages.
  • 13 October 2026: CVE-2026-49264 and CVE-2026-49265 were published in the CVE data.
  • 24 October 2026: the client_id advisory was published on GitHub; CVE-2026-118669 followed on 28 October 2026.
  • 23 November 2026: Ubuntu published USN-9188-1 with fixed packages.

Sources

This article is based on the public sources below. Details can change as vendors and researchers publish more; check the original advisories before acting on version numbers.

  1. CVE-2026-49264 - GitHub Advisory Databasegithub.com
  2. CVE-2026-49265 - GitHub Advisory Databasegithub.com
  3. CVE-2026-118669 - GitHub Advisory Databasegithub.com
  4. USN-9188-1: OAuthLib vulnerabilities | Ubuntu security notices | Ubuntuubuntu.com ·
  • OAuthLib
  • Ubuntu
  • OAuth
  • Python
  • USN
  • authorization bypass