{"id":"CVE-2026-118669","published":"2026-10-28T21:09:58Z","modified":"2026-11-03T13:38:35Z","title":"OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client","vendor":"oauthlib","product":"oauthlib","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.4,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00369,"percentile":0.31363,"provenance":"source"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"}],"references":[{"url":"https://github.com/oauthlib/oauthlib/security/advisories/GHSA-7984-qgvg-3j9c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/oauthlib/oauthlib/pull/920","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d","tags":["x_refsource_MISC"]},{"url":"https://github.com/oauthlib/oauthlib/releases/tag/v4.0.0","tags":["x_refsource_MISC"]}],"priority":{"score":17.2,"factors":[{"name":"EPSS percentile","points":6.27},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.88}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-11-09","earliestUrl":"https://github.com/federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model","repos":[{"name":"federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model","url":"https://github.com/federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model","stars":0,"created":"2026-11-09"}]},"first":{"date":"2026-11-09","source":"PoC-in-GitHub","url":"https://github.com/federiconbaez/cortex9-oauthlib-token-grant-client-id-confusion-model"},"provenance":"source"},"vendorSlug":"oauthlib","affectedVersions":[{"vendor":"oauthlib","product":"oauthlib","versions":["< 4.0.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-03T13:38:15.438408Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"oauthlib","vulnerableRanges":["<4.0.0"],"patched":["4.0.0"],"from":["GHSA-7984-qgvg-3j9c"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-112488","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-oauthlib-cve-2026-118669","children":[{"from":"CVE-2026-118669","to":"CVE-2026-49272","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:oauthlib","fromFixed":"4.0.0","toFixed":"4.0.1","daysApart":8},{"kind":"same-code","provenance":"machine","files":["oauthlib/oauth2/rfc6749/grant_types/base.py","oauthlib/oauth2/rfc8628/grant_types/device_code.py"],"commits":["https://github.com/oauthlib/oauthlib/commit/c951a1d09f99f14e3240973fa83c4f4287d4753d","https://github.com/oauthlib/oauthlib/commit/77a5f1c8ce00da2b0b8c5f6e9cc129920085f114"],"basis":"shared function","functions":["validate_token_request"]}]}],"packageHistory":[{"cve":"CVE-2022-36087","published":"2022-09-09","fixed":"3.2.2","kev":false},{"cve":"CVE-2026-118669","published":"2026-10-28","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49264","published":"2026-10-13","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49265","published":"2026-10-13","fixed":"4.0.0","kev":false},{"cve":"CVE-2026-49272","published":"2026-11-05","fixed":"4.0.1","kev":false}],"package":"PyPI:oauthlib"}}