Improper Authentication in oauthlib - CVE-2026-49272
Published: October 25, 2026
Vulnerability details
The vulnerability allows a remote user to obtain a bearer token without a valid device code and gain unauthorized access to resources accessible with that token.
The vulnerability exists due to missing device code validation in oauthlib's DeviceCodeGrant.validate_token_request method when processing device authorization grant requests. A remote user can submit a token endpoint request containing a valid client_id enabled for the device workflow, grant_type="urn:ietf:params:oauth:grant-type:device_code", and an arbitrary device_code to obtain a bearer token without completing the required device authorization.