CVE-2026-49272OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for…
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-oauthlib | Fixed | 3.3.1-2ubuntu0.1 | UBUNTU-CVE-2026-49272 |
| Ubuntu 26.04 | python-oauthlib | Fixed | 3.3.1-1ubuntu0.1 | UBUNTU-CVE-2026-49272 |
| Ubuntu 24.04 | python-oauthlib | Fixed | 3.2.2-1ubuntu0.1 | UBUNTU-CVE-2026-49272 |
| Ubuntu 22.04 | python-oauthlib | Fixed | 3.2.0-1ubuntu0.2 | UBUNTU-CVE-2026-49272 |
| Ubuntu 20.04 | python-oauthlib | Fix pending | 3.1.0-1ubuntu2+esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-49272 |
| Ubuntu 18.04 | python-oauthlib | Fix pending | 2.0.6-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-49272 |
| Ubuntu 16.04 | python-oauthlib | Fix pending | 1.0.3-1ubuntu0.1~esm1 (Ubuntu Pro) | UBUNTU-CVE-2026-49272 |
| Debian 14 | python-oauthlib | Fix pending | DEBIAN-CVE-2026-49272 | |
| Debian 13 | python-oauthlib | Fix pending | DEBIAN-CVE-2026-49272 | |
| Debian 12 | python-oauthlib | Fix pending | DEBIAN-CVE-2026-49272 | |
| PyPI library | oauthlib | Fixed | 4.0.1 | GHSA-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.
- oauthlib: affected: >= 3.3.0, < 4.0.1
References
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc
- https://github.com/oauthlib/oauthlib/pull/954
- https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1
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.