Public vulnerability disclosure

CVE-2026-118669

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

publishedCWE-863

OAuthLib is an implementation of the OAuth request-signing logic for Python 3.6+. Prior to 4.0.0, the client_credentials and Resource Owner Password Credentials token grant handlers can authenticate request.client as one confidential client while retaining an attacker-supplied request.client_id for validate_grant_type and validate_scopes. A lower-privilege authenticated client can therefore cause grant and scope authorization to use another client's identity when an application validator relies on the documented client_id argument, potentially issuing tokens with unauthorized grants or scopes. Validators that authorize exclusively from request.client may not be affected. This issue is fixed in version 4.0.0.

Technical severity8.4 highCVSS 4.0 · CNA: GitHub_M
Published2026-10-28Source updated 2026-11-03
Collected2026-11-033 attributed sources

Fixes and workarounds

Fix

oauthlib (PyPI): OSV reports a fixed version 4.0.0. Check the advisory for supported release branches.

Source: OSV GHSA-7984-qgvg-3j9c

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
oauthlib
oauthlib
< 4.0.0 (affected) CNA: GitHub_M
oauthlib

oauthlib
PyPI
0.0.1 (affected, PyPI)
0.0.2 (affected, PyPI)
0.1.0 (affected, PyPI)
0.1.1 (affected, PyPI)
0.1.2 (affected, PyPI)
0.1.3 (affected, PyPI)
0.3.0 (affected, PyPI)
0.3.2 (affected, PyPI)
0.3.3 (affected, PyPI)
0.3.4 (affected, PyPI)
0.3.5 (affected, PyPI)
0.3.6 (affected, PyPI)
0.3.7 (affected, PyPI)
0.3.8 (affected, PyPI)
0.4.0 (affected, PyPI)
0.4.1 (affected, PyPI)
0.4.2 (affected, PyPI)
0.5.0 (affected, PyPI)
0.5.1 (affected, PyPI)
0.6.0 (affected, PyPI)
0.6.1 (affected, PyPI)
0.6.2 (affected, PyPI)
0.6.3 (affected, PyPI)
0.7.0 (affected, PyPI)
0.7.1 (affected, PyPI)
0.7.2 (affected, PyPI)
1.0.0 (affected, PyPI)
1.0.1 (affected, PyPI)
1.0.2 (affected, PyPI)
1.0.3 (affected, PyPI)
1.1.0 (affected, PyPI)
1.1.1 (affected, PyPI)
1.1.2 (affected, PyPI)
2.0.0 (affected, PyPI)
2.0.1 (affected, PyPI)
2.0.2 (affected, PyPI)
2.0.3 (affected, PyPI)
2.0.4 (affected, PyPI)
2.0.5 (affected, PyPI)
2.0.6 (affected, PyPI)
2.0.7 (affected, PyPI)
2.1.0 (affected, PyPI)
3.0.0 (affected, PyPI)
3.0.1 (affected, PyPI)
3.0.2 (affected, PyPI)
3.1.0 (affected, PyPI)
3.1.1 (affected, PyPI)
3.2.0 (affected, PyPI)
3.2.1 (affected, PyPI)
3.2.2 (affected, PyPI)
3.3.0 (affected, PyPI)
3.3.1 (affected, PyPI)
Ecosystem version events: introduced 0; fixed 4.0.0
Source events (ECOSYSTEM)
[
  {
    "introduced": "0"
  },
  {
    "fixed": "4.0.0"
  }
]

Other versions: unaffected
OSV GHSA-7984-qgvg-3j9c

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 8.4
high
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:H/SI:H/SA:NCNA: GitHub_M

Exploit evidence

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide