PYSEC-2026-2117
Quick fix
PYSEC-2026-2117 — authlib: upgrade to the fixed version with the command below.
pip install --upgrade 'authlib>=1.6.9'Details
Authlib is a Python library which builds OAuth and OpenID Connect servers. Prior to version 1.6.9, a 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. This issue has been patched in version 1.6.9.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://access.redhat.com/security/cve/CVE-2026-28498[WEB]
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-28498.json[WEB]
- https://access.redhat.com/errata/RHSA-2026:6309[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6497[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6567[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6568[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6720[ADVISORY]
- https://access.redhat.com/errata/RHSA-2026:6912[ADVISORY]
- https://github.com/authlib/authlib/releases/tag/v1.6.9[ADVISORY]
- https://bugzilla.redhat.com/show_bug.cgi?id=2448182[REPORT]
- https://github.com/authlib/authlib/commit/b9bb2b25bf8b7e01512d847a95c1749646eaa72b[FIX]
- https://github.com/authlib/authlib/security/advisories/GHSA-m344-f55w-2m6j[EVIDENCE]