{"id":"CVE-2026-49272","summary":"OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow","details":"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.","aliases":["GHSA-3jp2-3mrg-2vxc"],"modified":"2026-11-13T20:46:26.249416311Z","published":"2026-11-05T20:58:00.517Z","related":["openSUSE-SU-2026:12520-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49272.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-287"]},"references":[{"type":"WEB","url":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49272.json"},{"type":"ADVISORY","url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-49272"},{"type":"FIX","url":"https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"},{"type":"FIX","url":"https://github.com/oauthlib/oauthlib/pull/954"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/oauthlib/oauthlib","events":[{"introduced":"6413d2e2a6414cdf29414b975f939c99f8046d59"},{"fixed":"6e3aa05af92978755939a18cb4dd655ced156c1e"},{"fixed":"77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"3.3.0"},{"fixed":"4.0.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"}]},{"original_tag":"v4.0.1","range":[{"fixed":"6e3aa05af92978755939a18cb4dd655ced156c1e"}],"source":"REFERENCES_TAG"}]}}],"versions":["v4.0.0","v3.3.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-49272.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N"}]}