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.
Published: 2026-10-01
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized endpoint replacement
Action: Apply Patch
AI Analysis

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.

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

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 yet.

History

Mon, 05 Oct 2026 19:30:00 +0000

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'}


Fri, 02 Oct 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Fri, 02 Oct 2026 12:15:00 +0000

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


Thu, 01 Oct 2026 20:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-20

Thu, 01 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Authlib
Authlib authlib
Vendors & Products Authlib
Authlib authlib

Thu, 01 Oct 2026 18:30:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: certcc

Published:

Updated: 2026-10-05T18:21:14.480Z

Reserved: 2026-10-01T18:01:19.689Z

Link: CVE-2026-104056

cve-icon Vulnrichment

Updated: 2026-10-05T18:21:02.943Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-01T19:17:19.033

Modified: 2026-10-05T19:17:14.327

Link: CVE-2026-104056

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-01T18:03:27Z

Links: CVE-2026-104056 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-05T22:15:16Z

Weaknesses
  • CWE-345

    Insufficient Verification of Data Authenticity

  • CWE-346

    Origin Validation Error

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere