Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. oauthlib
  4. ›
  5. CVE-2026-49272

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

October 27, 2026 (updated November 5, 2026)

A call to the token endpoint with a grant type of "urn:ietf:params:oauth:grant-type:device_code" and a bogus device_code is able to get a bearer token as long as they know a valid client ID enabled for the device workflow.

References

  • github.com/advisories/GHSA-3jp2-3mrg-2vxc
  • github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114
  • github.com/oauthlib/oauthlib/pull/954
  • github.com/oauthlib/oauthlib/releases/tag/v4.0.1
  • github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc
  • nvd.nist.gov/vuln/detail/CVE-2026-49272

Code Behaviors & Features

Detect and mitigate CVE-2026-49272 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 3.3.0 before 4.0.1

Fixed versions

  • 4.0.1

Solution

Upgrade to version 4.0.1 or above.

Impact 8.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-287: Improper Authentication

Source file

pypi/oauthlib/CVE-2026-49272.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:10 +0000.