Quick answers
- Is CVE-2026-49272 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-49272 being exploited in the wild.
- How severe is CVE-2026-49272?
- High severity, with a CVSS score of 8.5, published 5 November 2026.
- Which products and versions are affected?
- OAuthlib <UNKNOWN>; oauthlib (PyPI) >= 3.3.0, < 4.0.0, ECOSYSTEM:introduced=3.3.0,fixed=4.0.0.
- Is there a fix for CVE-2026-49272?
- Yes. oauthlib (PyPI): upgrade to 4.0.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-49272 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-49272?
- Check whether you run OAuthlib or oauthlib (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- oauthlib (PyPI): upgrade to 4.0.0 or later
pip install "oauthlib>=4.0.0"
Technical details
The DeviceCodeGrant.validate_token_request method does not validate the device_code parameter as required by RFC 8628 section 3.4, despite it being a mandatory field in the token endpoint request. An attacker can call the token endpoint with a valid client ID, the device_code grant type, and an arbitrary device_code value to receive a valid bearer token. The vulnerability affects implementations using the RFC 8628 device workflow where the client authentication is not properly enforced for public clients.
Affected products
- OAuthLib OAuthLib <UNKNOWN>
Identifiers
- CVE-2026-49272
- GHSA-3jp2-3mrg-2vxc
Timeline
- 2026-10-27: disclosed