Live threats

All CVEs / oauthlib

CVE-2026-49272oauthlib

High 8.5

Priority
51
CVSS 3.1
8.5
EPSS
—
Auth required
Yes
Published
Nov 5, 2026
Updated
Nov 12, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-287
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for oauthlib.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI oauthlib ≥ 3.3.0 < 4.0.1 4.0.1 pip install "oauthlib>=4.0.1"

Per OSV / GitHub Advisories (GHSA-3jp2-3mrg-2vxc). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.