CVE-2026-118669
OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client
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.
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-3j9cAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| oauthlib oauthlib |
< 4.0.0 (affected) | CNA: GitHub_M |
oauthliboauthlib
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)
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
| Version / score | Vector | Authority |
|---|---|---|
| 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:N | CNA: GitHub_M |
Exploit evidence
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c
exploit · ADP: CISA-ADP
References
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9cCNA: GitHub_M · x_refsource_CONFIRM
- https://github.com/oauthlib/oauthlib/pull/920CNA: GitHub_M · x_refsource_MISC
- https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753dCNA: GitHub_M · x_refsource_MISC
- https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0CNA: GitHub_M · x_refsource_MISC
- https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9cADP: CISA-ADP · exploit
- https://github.com/advisories/GHSA-7984-qgvg-3j9cOSV / GitHub Security Advisories · advisory
- https://osv.dev/vulnerability/GHSA-7984-qgvg-3j9cOSV / GitHub Security Advisories · osv
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/cveshttps://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.