Incorrect Authorization Affecting oauthlib package, versions [,4.0.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.37% (32nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Incorrect Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-OAUTHLIB-21802488
  • published29 Oct 2026
  • disclosed28 Oct 2026
  • creditLiyi, Ziyue, Str1ckl4nd, Maurice, Chenchen

Introduced: 28 Oct 2026

CVE-2026-118669  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade oauthlib to version 4.0.0 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Authorization via the token endpoint grant handlers (validate_token_request in authorization_code.py, client_credentials.py, resource_owner_password_credentials.py, and related grant types) due to a missing cross-check between the authenticated client identity and the client_id supplied in the request body. An authenticated client can pass a different client_id value in the token request body, causing scope and grant-type validation to be performed against the spoofed identity rather than the authenticated one, allowing the attacker to obtain tokens with scopes and privileges belonging to a different client.

CVSS Base Scores

version 4.0
version 3.1