OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow

Summary

CVECVE-2026-49272
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-05 21:18:50 UTC
Updated2026-11-05 22:18:44 UTC
DescriptionOAuthLib 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.

Risk And Classification

Primary CVSS: v3.1 8.5 HIGH from [email protected]

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

EPSS: 0.003280000 probability, percentile 0.260220000 (date 2026-11-06)

Problem Types: CWE-287 | CWE-287 CWE-287: Improper Authentication


VersionSourceTypeScoreSeverityVector
3.1[email protected]Secondary8.5HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N
3.1CNADECLARED8.5HIGHCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Oauthlib Oauthlib affected >= 3.3.0, < 4.0.1 Not specified

References

ReferenceSourceLinkTags
github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc 134c704f-9b21-4f2e-91b3-4a467353bcc0 github.com
github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085... [email protected] github.com
github.com/oauthlib/oauthlib/pull/954 [email protected] github.com
github.com/oauthlib/oauthlib/releases/tag/v4.0.1 [email protected] github.com
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report