# CVE-2026-49272: OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow

- Severity: High 8.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-27T13:30:17.000Z
- Modified: 2026-11-12T20:04:52.377Z
- Also known as: GHSA-3jp2-3mrg-2vxc
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- oauthlib oauthlib: >= 3.3.0, < 4.0.1
- oauthlib (PyPI): from 3.3.0 before 4.0.1

## Every score

- GitHub_M: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`
- GitHub: CVSS:3.1 8.5 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N`

## References

- <https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc> (exploit, web)
- <https://github.com/oauthlib/oauthlib/pull/954> (web)
- <https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114> (web)
- <https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1> (web)
- <https://github.com/oauthlib/oauthlib> (package)

## Sources

- CVE List: [CVE-2026-49272](https://www.cve.org/CVERecord?id=CVE-2026-49272), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-3jp2-3mrg-2vxc](https://github.com/advisories/GHSA-3jp2-3mrg-2vxc), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-49272](https://nvd.nist.gov/vuln/detail/CVE-2026-49272), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-49272 · Whole record: https://cve.day/CVE-2026-49272.json · Rebuilt by cve.day 2026-11-25T22:59:49.186Z
