{"id":"CVE-2026-118669","summary":"OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client","details":"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.","aliases":["GHSA-7984-qgvg-3j9c"],"modified":"2026-11-16T18:12:22.322818371Z","published":"2026-10-28T21:09:58.893Z","related":["ALSA-2026:98641","openSUSE-SU-2026:12520-1"],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-863"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118669.json"},"references":[{"type":"WEB","url":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118669.json"},{"type":"ADVISORY","url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118669"},{"type":"FIX","url":"https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d"},{"type":"FIX","url":"https://github.com/oauthlib/oauthlib/pull/920"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/oauthlib/oauthlib","events":[{"introduced":"0"},{"fixed":"145a9a4690cb4d9de30d15fcc2984e34c49df741"},{"fixed":"c951a1d09f99f14e3240973fa83c4f4287d4753d"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"4.0.0"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"c951a1d09f99f14e3240973fa83c4f4287d4753d"}]},{"source":"REFERENCES_TAG","original_tag":"v4.0.0","range":[{"fixed":"145a9a4690cb4d9de30d15fcc2984e34c49df741"}]}]}}],"versions":["v3.3.0","v3.1.0","v3.0.1","v2.0.5","v3.0.0","v2.0.4","v2.0.3","v2.0.2","v2.0.1","v2.0.0","v1.1.2","1.1.1","1.0.1","1.1.0","1.0.3","1.0.2","1.0.0","0.7.2","0.7.1","0.7.0","0.6.3","0.6.2","0.6.1","0.6.0","0.5.1","0.5.0","0.4.2","0.4.1","0.4.0","0.3.8","0.3.7","0.3.6","0.3.5","0.3.4","0.3.3","0.3.2","0.3.0","0.2.1","0.2.0","0.1.4","0.1.2","0.1.1","0.1.0","0.0.2","v0.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-118669.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}