{"id":"CVE-2026-49272","state":"PUBLISHED","title":"OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow","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.","publishedAt":"2026-11-05T20:58:00.517Z","updatedAt":"2026-11-05T21:14:43.982Z","severity":{"score":8.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","source":"GitHub_M"},"assigner":"GitHub_M","products":["oauthlib oauthlib"],"affected":[{"vendor":"oauthlib","product":"oauthlib","versions":[{"version":">= 3.3.0, < 4.0.1","status":"affected"}]}],"references":["https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc","https://github.com/oauthlib/oauthlib/pull/954","https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114","https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1"],"weaknesses":["CWE-287"],"ingestedAt":"2026-11-05T21:24:04.985Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/49xxx/CVE-2026-49272.json","commit":"1ee38e43aaea7ffdc6b7a34523a75597f61ac306","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-49272","state":"PUBLISHED","datePublished":"2026-11-05T20:58:00.517Z","dateUpdated":"2026-11-05T21:14:43.982Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-05-28T20:07:58.860Z"},"containers":{"cna":{"title":"OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"oauthlib","product":"oauthlib","versions":[{"version":">= 3.3.0, < 4.0.1","status":"affected"}]}],"references":[{"url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc","name":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oauthlib/oauthlib/pull/954","name":"https://github.com/oauthlib/oauthlib/pull/954","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114","name":"https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1","name":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":8.5,"baseSeverity":"HIGH","confidentialityImpact":"LOW","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-287","lang":"en","description":"CWE-287: Improper Authentication","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-11-05T20:58:00.517Z"},"source":{"advisory":"GHSA-3jp2-3mrg-2vxc","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-11-05T21:14:28.774870Z","id":"CVE-2026-49272","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-11-05T21:14:43.982Z"}}]}}}