Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. authlib
  4. ›
  5. CVE-2026-28498

CVE-2026-28498: Authlib: Fail-Open Cryptographic Verification in OIDC Hash Binding

March 16, 2026

A critical library-level vulnerability was identified in the Authlib Python library concerning the validation of OpenID Connect (OIDC) ID Tokens. Specifically, the internal hash verification logic (_verify_hash) responsible for validating the at_hash (Access Token Hash) and c_hash (Authorization Code Hash) claims exhibits a fail-open behavior when encountering an unsupported or unknown cryptographic algorithm.

This flaw allows an attacker to bypass mandatory integrity protections by supplying a forged ID Token with a deliberately unrecognized alg header parameter. The library intercepts the unsupported state and silently returns True (validation passed), inherently violating fundamental cryptographic design principles and direct OIDC specifications.


References

  • github.com/advisories/GHSA-m344-f55w-2m6j
  • github.com/authlib/authlib
  • github.com/authlib/authlib/commit/b9bb2b25bf8b7e01512d847a95c1749646eaa72b
  • github.com/authlib/authlib/releases/tag/v1.6.9
  • github.com/authlib/authlib/security/advisories/GHSA-m344-f55w-2m6j
  • nvd.nist.gov/vuln/detail/CVE-2026-28498

Code Behaviors & Features

Detect and mitigate CVE-2026-28498 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.9

Fixed versions

  • 1.6.9

Solution

Upgrade to version 1.6.9 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-354: Improper Validation of Integrity Check Value
  • CWE-573: Improper Following of Specification by Caller

Source file

pypi/authlib/CVE-2026-28498.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 24 Mar 2026 12:18:47 +0000.