// Security Advisory Triage

OAuthLib device flow bypasses authorization with valid client ID

GitHub advisories — pip · published 2026-10-27 18:05 UTC
ACTION NEEDED PATCH_NOW SECURITYAPI
WHAT CHANGEDGitHub published CVE-2026-49272 on 27 October 2026, rating it high severity. OAuthLib's device authorization workflow allows bearer token retrieval using only a valid client ID, without proper authorization checks. The vulnerability is patched in version 4.0.0.
WHY IT MATTERSAn attacker who knows any valid client ID can obtain bearer tokens through the device flow, bypassing the authorization step that should require user consent. This breaks the OAuth security model for any application using OAuthLib's device flow implementation.
WHAT TO DOCheck whether your Python services import oauthlib and use device authorization flow (grep for 'DeviceClient' or device flow endpoints). If exposed, update to oauthlib 4.0.0 this cycle.
Model-reported confidence 85% (not measured accuracy) Primary source ↗ written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-3jp2-3mrg-2vxc
+summary: OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow
+severity: high
+published_at: 2026-10-27T13:30:17Z
+cve_id: CVE-2026-49272
+vulnerabilities[].package.name: oauthlib
+vulnerabilities[].first_patched_version: 4.0.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
triage verdictMATERIAL at 0.92, needed 0.5
triage reasoningOAuth library authentication bypass affecting Python dependency trees used in identity and API security.
signalsauthentication bypass in OAuth library · bearer token retrieval without proper authorization · high severity rating · oauthlib is a widely-used Python OAuth implementation in dependency trees · fixed version available (4.0.0) · new advisory entry
suppression—
triage modelanthropic/claude-haiku-4.5 ($0.00000)
writer modelanthropic/claude-sonnet-4.5 ($0.00000)