← Back to search

CVE-2026-49272

8.5 HIGHpublic exploit available

Published 2026-11-05 · Updated 2026-11-05

AI risk analysis

Summary
OAuthLib versions 3.3.0 through 4.0.0 fail to validate the presence and correctness of the device_code parameter in RFC 8628 device authorization token requests, allowing an authenticated attacker with a valid client ID to bypass the device flow and obtain a bearer token without completing device authorization. This enables unauthorized access by skipping required user interaction steps.
Exploitability
Exploitation requires knowledge of a valid client ID enabled for the device workflow and successful authentication via the configured validator; it is straightforward for an authenticated attacker with minimal privileges.
Blast radius
Successful exploitation allows an attacker to obtain bearer tokens without completing device authorization, potentially granting unauthorized access to protected resources tied to the compromised client credentials.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to OAuthLib version 4.0.1 or later, which includes the fix for missing device_code validation in the DeviceCodeGrant.validate_token_request method.
oauthauth-bypassrfc8628device-flowpython

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

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

Weaknesses

CWE-287

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.