CVE-2026-104056

CVE-2026-104056

Published Oct 1, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Authlib version 1.7.2 and below contains a vulnerability where discovery JSON metadata is cached without validation or issuer-origin binding. This allows a poisoned discovery response to replace all endpoint values with attacker-controlled values rather than endpoint URLs that share the origin of the configured server metadata URL.

Analysis

AI-generated

Technical impact

Authlib 1.7.2 and earlier caches OpenID Connect discovery documents without validating the issuer claim or ensuring that the endpoint values originate from the same domain as the discovery endpoint URL. This flaw allows an attacker to serve a malicious discovery document that replaces every endpoint URL—including authorization_endpoint and token_endpoint—with attacker‑controlled URLs. The library accepts and caches these values, effectively redirecting all subsequent authentication traffic to attacker‑controlled servers. The result is potential credential theft or session hijacking when the host application interacts with the redirected endpoints.

Affected Systems

The affected product is the Authlib library released by the Authlib project. Versions 1.7.2 and earlier are vulnerable; no other vendors or products are listed as impacted.

Risk and Exploitability

The flaw can be exploited whenever an application performs OIDC discovery and receives a poisoned document, which is then cached until invalidated or the library is upgraded. The CVSS score of 9.8 indicates a critical level of severity, while the EPSS score of less than 1% suggests a low probability of exploitation based on current data. The vulnerability is not listed in CISA’s KEV catalog, implying no confirmed exploitation reports. Attackers could obtain a poisoned discovery response by controlling a service that responds to the discovery request; this inferred attack vector is consistent with the described behavior.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Authlib to the latest release that validates discovery responses and enforces issuer‑origin binding
  • Restrict outbound network traffic so that the application can only retrieve discovery documents from trusted and verified authentication servers
  • Deploy runtime monitoring to detect unexpected changes to authentication endpoint URLs and to alert when they differ from the expected domain

Generated by OpenCVE AI on October 5, 2026 at 22:14 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-345
CWE-829
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
Weaknesses CWE-346
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-20
Type Values Removed Values Added
First Time appeared Authlib
Authlib authlib
Vendors & Products Authlib
Authlib authlib
Type Values Removed Values Added
Description Authlib version 1.7.2 and below contains a vulnerability where discovery JSON metadata is cached without validation or issuer-origin binding. This allows a poisoned discovery response to replace all endpoint values with attacker-controlled values rather than endpoint URLs that share the origin of the configured server metadata URL.
Title CVE-2026-104056
References
Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-346

    Origin Validation Error

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

Sources

Status
PUBLISHED
Assigner
certcc
Published
Updated
Oct 5, 2026, 6:21 PM
Reserved
Oct 1, 2026, 6:01 PM
Status
Awaiting Analysis
Published
Oct 1, 2026, 7:17 PM
Modified
Oct 5, 2026, 7:17 PM
Severity
Moderate
Public date
Oct 1, 2026, 6:03 PM