{"id":"CVE-2026-49272","published":"2026-11-05T20:58:00Z","modified":"2026-11-05T21:14:43Z","title":"OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow","vendor":"oauthlib","product":"oauthlib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00363,"percentile":0.30751,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oauthlib/oauthlib/pull/954","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.15},{"name":"CVSS severity","points":5.95}]},"vendorSlug":"oauthlib","affectedVersions":[{"vendor":"oauthlib","product":"oauthlib","versions":[">= 3.3.0, < 4.0.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-05T21:14:28.774870Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"oauthlib","vulnerableRanges":[">=3.3.0, <4.0.1"],"patched":["4.0.1"],"from":["GHSA-3jp2-3mrg-2vxc"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-117800","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-oauthlib-cve-2026-118669","parents":[{"from":"CVE-2026-118669","to":"CVE-2026-49272","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:oauthlib","fromFixed":"4.0.0","toFixed":"4.0.1","daysApart":8},{"kind":"same-code","provenance":"machine","files":["oauthlib/oauth2/rfc6749/grant_types/base.py","oauthlib/oauth2/rfc8628/grant_types/device_code.py"],"commits":["https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d","https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"],"basis":"shared function","functions":["validate_token_request"]}]}],"packageHistory":[{"cve":"CVE-2026-118669","published":"2026-10-28","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49264","published":"2026-10-13","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49265","published":"2026-10-13","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49272","published":"2026-11-05","fixed":"4.0.1","kev":false}],"package":"PyPI:oauthlib"}}