All vulnerabilities

PyPI

CVE-2026-114614

Authlib: is_secure_transport() loopback exemption can be bypassed with a userinfo component, allowing cleartext-HTTP URLs to non-loopback hosts

Severity
Low 2.6
Published
27 Oct 2026
Last changed
30 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.8.0
Exploit chance
0.3% in the next 30 daysHigher than 19% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cleartext transmission (CWE-319)Open redirect (CWE-601)Protection mechanism failure (CWE-693)
Attack
Over the network · Only under certain conditions · Needs a user account · Needs someone to click or open something
Attacker can
Read some data
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
Also known as
GHSA-jj7h-c3hg-m23x, PYSEC-2026-4354
Sources
OSV.dev and GitHub

Description

authlib.common.security.is_secure_transport() is used throughout Authlib to enforce the OAuth 2.0 / OIDC requirement that endpoint and redirect URIs use TLS, with an RFC 8252 §7.3 exemption for loopback http:// URIs. The check is implemented as a textual str.startswith prefix match, so a URL such as http://localhost:[email protected]/cb — whose actual host is evil.example and whose scheme is plain http — is accepted as "secure". An attacker who can supply a URL to any of the sinks that rely on this check (OIDC RP-Initiated Logout dynamic client registration, RFC 8414 authorization-server metadata validation, error-redirect rendering) can smuggle a cleartext non-loopback URL past the TLS-required guard. This is a defense-in-depth / spec-conformance failure; severity is low.

Affected versions: authlib >= 0.13, <= 1.7.2 (all releases containing the loopback prefix exemption; verified against 1.7.2, the current latest)

The vulnerable function, from authlib/common/security.py at v1.7.2:

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
authlibPyPI · osv:PyPI:authlib
  • Every version before 1.8.0

About authlib

Weekly downloads (PyPI)
38,222,635PyPI Stats, 23 Nov 2026

References