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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-287"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49272.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "3.3.0"
},
{
"fixed": "4.0.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v4.0.1",
"range": [
{
"fixed": "6e3aa05af92978755939a18cb4dd655ced156c1e"
}
],
"source": "REFERENCES_TAG"
}
]
}