Incorrect Authorization Affecting authlib package, versions [,1.6.12)[1.7.0, 1.7.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (13th 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-AUTHLIB-16643257
  • published13 May 2026
  • disclosed13 May 2026
  • creditYo Iida

Introduced: 13 May 2026

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

How to fix?

Upgrade authlib to version 1.6.12, 1.7.1 or higher.

Overview

authlib is a library in building OAuth and OpenID Connect servers.

Affected versions of this package are vulnerable to Incorrect Authorization via the validate_authorization_request function. An attacker can cause the server to redirect users to arbitrary URLs by submitting a crafted authorization request that omits the required scope and supplies a malicious redirect_uri parameter. This can be exploited to facilitate phishing attacks or credential harvesting by leveraging the trust of the legitimate server's domain.

Workaround

This vulnerability can be mitigated by unregistering the affected grant types if Implicit and Hybrid flows are not required, or by placing a reverse proxy in front of the authorization endpoint to reject requests containing both a redirect_uri parameter and a scope that does not include the required value when the response type matches the vulnerable set.

CVSS Base Scores

version 4.0
version 3.1