Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
oauthlib oauthlib >= 3.3.0, < 4.0.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-oauthlib No fix yet —
Debian 13 python-oauthlib No fix yet —
Debian 12 python-oauthlib No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-oauthlib No fix yet —
Ubuntu 26.04 LTS python-oauthlib No fix yet —
Ubuntu 24.04 LTS python-oauthlib No fix yet —
Ubuntu 22.04 LTS python-oauthlib No fix yet —
Ubuntu 20.04 LTS python-oauthlib No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS python-oauthlib No fix yet —
Ubuntu 16.04 LTS python-oauthlib No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-oauthlib 4.0.1-1.1 openSUSE-SU-2026:12520-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling dask-kubernetes 2026.3.0-r20 —
Wolfi rolling datadog-agent-7.78-core-integrations 7.78.4-r28 —
Wolfi rolling datadog-agent-7.79-core-integrations 7.79.2-r29 —
Wolfi rolling datadog-agent-7.80-core-integrations 7.80.4-r30 —
Wolfi rolling datadog-agent-7.81-core-integrations No fix yet —
Wolfi rolling ggshield 1.55.0-r6 —
Wolfi rolling kubeflow-jupyter-web-app 1.10.0-r31 —
Wolfi rolling kubeflow-pipelines-apiserver 2.18.0-r4 —
Wolfi rolling kubeflow-pipelines-visualization-server 2.18.0-r3 —
Wolfi rolling kubeflow-volumes-web-app 1.10.0-r30 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI oauthlib >= 3.3.0, < 4.0.1 4.0.1 GHSA-3jp2-3mrg-2vxc

Advisories 1

References