Quick answers
- Is CVE-2026-27962 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-27962 being exploited in the wild.
- How severe is CVE-2026-27962?
- Critical severity, with a CVSS score of 9.1, published 16 March 2026.
- Which products and versions are affected?
- authlib (PyPI) <= 1.6.8, ECOSYSTEM:introduced=0,fixed=1.6.9.
- Is there a fix for CVE-2026-27962?
- Yes. authlib (PyPI): upgrade to 1.6.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-27962 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-27962?
- Check whether you run authlib (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- authlib (PyPI): upgrade to 1.6.9 or later
pip install "authlib>=1.6.9"
Technical details
A JWK Header Injection vulnerability exists in Authlib's JWS implementation prior to version 1.6.9. When the library's JWS deserialization functions (such as `deserialize_compact`) are called with `key=None`, the library incorrectly falls back to using the cryptographic key provided in the attacker-controlled `jwk` header field of the token. This allows an unauthenticated remote attacker to sign a token with their own private key, include the corresponding public key in the header, and successfully pass signature verification. This behavior violates RFC 7515, which requires verification keys to come from the application context rather than the token itself. The issue is particularly prevalent in JWKS-based lookups where a key resolver might return `None` for an unknown key ID (kid). The vulnerability is patched in version 1.6.9 by removing the automatic fallback to the header's JWK.
Affected products
- Authlib Authlib < 1.6.9
- Red Hat Red Hat Quay 3.1, 3.14, 3.15, 3.16
Identifiers
- CVE-2026-27962
- GHSA-wvwj-cvrp-7pv5
- PYSEC-2026-287
Timeline
- 2026-03-02: patched: Version 1.6.9 released
- 2026-03-15: advisory: GitHub Security Advisory published
- 2026-03-16: disclosed: CVE-2026-27962 published to NVD
References
- https://github.com/authlib/authlib/commit/a5d4b2d4c9e46bfa11c82f85fdc2bcc0b50ae681
- https://github.com/authlib/authlib/releases/tag/v1.6.9
- https://github.com/authlib/authlib/security/advisories/GHSA-wvwj-cvrp-7pv5
- https://access.redhat.com/errata/RHSA-2026:19375
- https://access.redhat.com/errata/RHSA-2026:24853
- https://access.redhat.com/errata/RHSA-2026:5665
- https://access.redhat.com/errata/RHSA-2026:7314