oauthlib vulnerabilities

A generic, spec-compliant, thorough implementation of the OAuth request-signing logic

Registry
PyPI
Latest
4.0.1
License
BSD-3-Clause

5 known advisories

The latest version, 4.0.1, is not affected by any of them. Projects on older versions may be.

Update to the latest version:pip install 'oauthlib>=4.0.1'

Is your project on an affected oauthlib?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Security advisories for oauthlib

  • HighCVE-2026-118669GHSA-7984-qgvg-3j9c30 Oct 2026

    OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client

    Affected
    <4.0.0
    Fixed in
    4.0.0
  • HighCVE-2026-49272GHSA-3jp2-3mrg-2vxc27 Oct 2026

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

    Affected
    >=3.3.0 <4.0.1
    Fixed in
    4.0.1
  • MediumCVE-2026-49265GHSA-xpv3-w29h-x7cv29 Sept 2026

    Oauthlib: Timing Attack Vulnerability in PKCE code_verifier Comparison (CWE-208)

    Affected
    >=3.0.0 <4.0.0
    Fixed in
    4.0.0
  • MediumCVE-2026-49264GHSA-hj66-6f7g-4r5v29 Sept 2026

    Oauthlib : Unsafe JSONP callback injection in RevocationEndpoint allows arbitrary JavaScript response generation

    Affected
    >=0.6.1 <4.0.0
    Fixed in
    4.0.0
  • MediumCVE-2022-36087GHSA-3pgj-pg6c-r5p716 Sept 2022

    OAuthLib vulnerable to DoS when attacker provides malicious IPV6 URI

    Affected
    >=3.1.1 <3.2.2
    Fixed in
    3.2.2

Is your oauthlib version vulnerable?

Which of your client projects still run an old oauthlib?

NPMscan reads the requirements.txt, poetry.lock, uv.lock and Pipfile.lock in every GitHub repo you pick and checks each installed version against these advisories, including the packages your packages pull in. Each finding comes with the command that fixes it.

Other PyPI packages

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily. Package details from the PyPI registry.