PyPI
CVE-2026-114616
Authlib accepts an empty HMAC key, allowing JWS/JWT signature forgery (HS256/HS384/HS512)
- Severity
- High 7.4
- Published
- 27 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.9.1
- Exploit chance
- 0.3% in the next 30 daysHigher than 22% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-8m4g-j4wp-wgcg, PYSEC-2026-4356
- Sources
- OSV.dev and GitHub
Description
Reporter: Cavan Loughran, Celvex Group Inc.
Summary
Authlib's symmetric (oct) key handling accepts an empty key (empty bytes b'' / empty string '') as a valid HMAC signing and verification key. An empty HMAC key produces a deterministic digest that any party can reproduce, so an attacker who knows (or can cause) the application to verify a token with an empty key can forge arbitrary tokens that pass HS256/HS384/HS512 signature verification. This is the Authlib member of the cross-language empty-HMAC-key family already assigned CVE-2026-44351 (fast-jwt, npm) and CVE-2026-45363 (ruby-jwt, RubyGems).
This is DISTINCT from Authlib's existing recent JWT-verification advisories. It is not closed by CVE-2026-27962 / GHSA-wvwj-cvrp-7pv5 (JWS JWK header injection, the key=None case), nor by CVE-2026-28802 / GHSA-7wc2-qxgw-g8gg (alg:none blank-signature bypass), nor by GHSA-5357-c2jx-v7qh (algorithm confusion with asymmetric public keys).
Affected software
| Software | Affected versions |
|---|---|
authlibPyPI · osv:PyPI:authlib |
|
About authlib
- Weekly downloads (PyPI)
- 38,222,635PyPI Stats, 23 Nov 2026
Vulnerabilities in authlib
- In our list
- 9
- Published in the last 12 months
- 9
- Critical, last 12 months
- 1
- High, last 12 months
- 3
- Known exploited
- 0
- CVE-2026-116672Authlib RFC 7592 examples omit registration-access-token client bindingHigh 8.8 30 Oct 2026
- CVE-2026-114620Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRFMedium 5.4 27 Oct 2026
- CVE-2026-114617Authlib: ID token can disable its own nonce validation via the nonce_supported claimMedium 4.2 27 Oct 2026
- CVE-2026-114618Authlib: Default JWT bearer grant accepts assertions for the wrong audienceMedium 6.8 27 Oct 2026
- CVE-2026-114619Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokensMedium 4.6 27 Oct 2026
- CVE-2026-114615Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keysHigh 7.4 27 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-114616
- GitHub Advisory Database https://github.com/advisories/GHSA-8m4g-j4wp-wgcg