CVE-2026-49272
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.
Severity
HIGH
CVSS v3
8.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N · source cna
Exploit chance (EPSS)
0.328%
chance of exploitation in the next 30 days
higher than 26.3% of scored CVEs · 2026-11-18
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-287: Improper Authentication
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-05 |
Timeline
- 2026-10-27GitHub advisory published (GHSA-3jp2-3mrg-2vxc)9 days before publication
- 2026-11-05Published by the CNA20:58 UTC
- 2026-11-05CISA SSVC decision recordedsame day
Exploit and advisory records
GitHub advisory GHSA-3jp2-3mrg-2vxc, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| PyPI oauthlib | from 3.3.0 before 4.0.1 | 4.0.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| oauthlib oauthlib |
References
- https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114
- https://github.com/oauthlib/oauthlib/pull/954
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-49272'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-49272'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-49272'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-49272'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).