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.

Project Subscriptions

Vendors Products
Oauthlib Subscribe
Oauthlib Subscribe
Advisories
Source ID Title
Github GHSA Github GHSA GHSA-3jp2-3mrg-2vxc OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow
Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Fri, 06 Nov 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Fri, 06 Nov 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-303
References
Metrics threat_severity

None

threat_severity

Important


Thu, 05 Nov 2026 23:00:00 +0000

Type Values Removed Values Added
First Time appeared Oauthlib
Oauthlib oauthlib
Vendors & Products Oauthlib
Oauthlib oauthlib

Thu, 05 Nov 2026 21:15:00 +0000

Type Values Removed Values Added
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.
Title OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow
Weaknesses CWE-287
References
Metrics cvssV3_1

{'score': 8.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-11-05T21:14:43.982Z

Reserved: 2026-05-28T20:07:58.860Z

Link: CVE-2026-49272

cve-icon Vulnrichment

Updated: 2026-11-05T21:14:39.850Z

cve-icon NVD

Status : Received

Published: 2026-11-05T21:18:50.447

Modified: 2026-11-05T22:18:44.593

Link: CVE-2026-49272

cve-icon Redhat

Severity : Important

Publid Date: 2026-11-05T20:58:00Z

Links: CVE-2026-49272 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T15:00:07Z

Weaknesses