Is oauthlib 3.1 vulnerable?

PyPI · 2 releases from 3.1.0 to 3.1.1 · latest oauthlib is 4.0.1 · checked 18 Nov 2026

Yes: 4 known advisories

Yes. oauthlib 3.1.1, the last 3.1 release, is affected by 4 known security advisories (1 high, 3 medium), including CVE-2026-118669, CVE-2026-49265, CVE-2026-49264. Upgrade to 4.0.0 or later to fix all of them.

Upgrade with:pip install 'oauthlib>=4.0.0'

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

Advisories affecting oauthlib 3.1.1

  • 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
  • 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

Every oauthlib 3.1.x release

Affected: 3.1.0 to 3.1.1. Latest oauthlib: 4.0.1.

VersionKnown advisories
oauthlib 3.1.1CVE-2026-118669, CVE-2026-49265, CVE-2026-49264, CVE-2022-36087
oauthlib 3.1.0CVE-2026-118669, CVE-2026-49265, CVE-2026-49264

Which of your client projects are still on oauthlib 3.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact oauthlib version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other oauthlib versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.