{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.3.0"
                  },
                  {
                    "fixed": "4.0.1"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StringRangeExpression"
              },
              {
                "range": [
                  {
                    "fixed": "77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "v4.0.1",
                "range": [
                  {
                    "fixed": "6e3aa05af92978755939a18cb4dd655ced156c1e"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "6413d2e2a6414cdf29414b975f939c99f8046d59"
            },
            {
              "fixed": "6e3aa05af92978755939a18cb4dd655ced156c1e"
            },
            {
              "fixed": "77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"
            }
          ],
          "repo": "https://github.com/oauthlib/oauthlib",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3jp2-3mrg-2vxc"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-287"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49272.json"
  },
  "details": "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.",
  "id": "CVE-2026-49272",
  "modified": "2026-11-14T02:30:24.806661302Z",
  "published": "2026-11-05T20:58:00.517Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/oauthlib/oauthlib/releases/tag/v4.0.1"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/49xxx/CVE-2026-49272.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/oauthlib/oauthlib/security/advisories/GHSA-3jp2-3mrg-2vxc"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-49272"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"
    },
    {
      "type": "FIX",
      "url": "https://github.com/oauthlib/oauthlib/pull/954"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "OAuthLib: Bearer token can be retrieved as long as client knows a valid client ID for device workflow"
}