CVEfocus › CVE database › CVE-2026-49272

CVE-2026-49272OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for…

CVSS 8.5 HighEPSS 0.4% (higher than 22% of CVEs)Published 2026-11-05Updated 2026-11-05Assigner: GitHub_M

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. A caller whose client request is accepted by the configured validator and who knows a valid client ID enabled for the device workflow can submit a missing or bogus device code to the token endpoint and obtain a bearer token without completing device authorization. This issue is fixed in version 4.0.1.

CWE-287

What to do

Fixed builds are available from PyPI, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Fixed
6Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10python-oauthlibFixed3.3.1-2ubuntu0.1UBUNTU-CVE-2026-49272
Ubuntu 26.04python-oauthlibFixed3.3.1-1ubuntu0.1UBUNTU-CVE-2026-49272
Ubuntu 24.04python-oauthlibFixed3.2.2-1ubuntu0.1UBUNTU-CVE-2026-49272
Ubuntu 22.04python-oauthlibFixed3.2.0-1ubuntu0.2UBUNTU-CVE-2026-49272
Ubuntu 20.04python-oauthlibFix pending3.1.0-1ubuntu2+esm1 (Ubuntu Pro)UBUNTU-CVE-2026-49272
Ubuntu 18.04python-oauthlibFix pending2.0.6-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-49272
Ubuntu 16.04python-oauthlibFix pending1.0.3-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2026-49272
Debian 14python-oauthlibFix pendingDEBIAN-CVE-2026-49272
Debian 13python-oauthlibFix pendingDEBIAN-CVE-2026-49272
Debian 12python-oauthlibFix pendingDEBIAN-CVE-2026-49272
PyPI libraryoauthlibFixed4.0.1GHSA-3jp2-3mrg-2vxc

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.