Vulnerability · Published Nov 5, 2026 · Assigned by GitHub_M
CVE-2026-49272OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow
High 8.5
In plain English
A high-severity improper authentication in oauthlib from oauthlib. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 26% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | python-oauthlib | no fix listed | DEBIAN-CVE-2026-49272 |
| Debian:13 | python-oauthlib | no fix listed | DEBIAN-CVE-2026-49272 |
| Debian:14 | python-oauthlib | no fix listed | DEBIAN-CVE-2026-49272 |
| PyPI | oauthlib | 4.0.1 | GHSA-3jp2-3mrg-2vxc |
| Ubuntu:22.04:LTS | python-oauthlib | no fix listed | UBUNTU-CVE-2026-49272 |
| Ubuntu:24.04:LTS | python-oauthlib | no fix listed | UBUNTU-CVE-2026-49272 |
| Ubuntu:26.04:LTS | python-oauthlib | no fix listed | UBUNTU-CVE-2026-49272 |
| Ubuntu:26.10 | python-oauthlib | no fix listed | UBUNTU-CVE-2026-49272 |
Affected products (as reported)
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
References
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc x_refsource_CONFIRM
- https://github.com/oauthlib/oauthlib/pull/954 x_refsource_MISC
- https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114 x_refsource_MISC
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1 x_refsource_MISC