Description
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.
Published: 2026-10-28
Score: 8.4 High
EPSS: n/a
KEV: No
Impact: Unauthorized Token Issuance
Action: Apply Patch
AI Analysis

Impact

The vulnerability arises when OAuthLib's client_credentials and Resource Owner Password Credentials grant handlers authenticate the request.client as a confidential client but retain an attacker‑supplied request.client_id for validation functions. This causes grant type and scope checks to be performed against the attacker‑supplied client_id rather than the authenticated client. The result is that an attacker can obtain tokens with grants or scopes belonging to a different, higher‑privilege client, effectively bypassing authorization. The weakness is a permission‑or‑role‑escalation logic flaw (CWE‑863).

Affected Systems

The affected product is the OAuthLib Python library (oauthlib:oauthlib). All releases before version 4.0.0 are vulnerable, including every deployment that installs versions 3.x and earlier in a Python 3.6+ environment. The flaw exists specifically in the client_credentials and Resource Owner Password Credentials grant handlers.

Risk and Exploitability

The CVSS score of 8.4 indicates a high severity. No EPSS score is publicly available, and the issue is not listed in the CISA KEV catalog, so the likelihood of observed exploitation is unknown. Attackers would need to control or influence the token request flow, supplying a client_id that differs from the authenticated client while using client_credentials or Resource Owner Password Grants. Once that occurs, the library will issue a token with the attacker‑supplied client’s identity and scopes, potentially granting access to protected resources. The flaw is exploitable in environments where application validators rely on the request.client_id field and have not otherwise reconciled it with the authenticated client.

Generated by OpenCVE AI on October 28, 2026 at 22:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade OAuthLib to version 4.0.0 or later, which aligns grant and scope validation with the authenticated client.
  • Verify that any custom validator logic properly compares request.client_id with the authenticated client and rejects mismatches.
  • If the Resource Owner Password Credentials grant is not required, disable it or restrict it to trusted clients to limit the attack surface.

Generated by OpenCVE AI on October 28, 2026 at 22:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 28 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Description 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.
Title OAuthLib: Token grants can use attacker-supplied client_id for authorization after authenticating a different client
Weaknesses CWE-863
References
Metrics cvssV4_0

{'score': 8.4, '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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-10-28T21:09:58.893Z

Reserved: 2026-10-28T17:25:37.562Z

Link: CVE-2026-118669

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-28T22:17:12.610

Modified: 2026-10-28T22:17:12.610

Link: CVE-2026-118669

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T22:30:12Z

Weaknesses