PyPI
CVE-2026-114615
Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keys
- Severity
- High 7.4
- Published
- 27 Oct 2026
- Last changed
- 30 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 1.9.0
- Exploit chance
- 0.2% in the next 30 daysHigher than 11% 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-7vr2-2fgp-9w7p, PYSEC-2026-4355
- Sources
- OSV.dev and GitHub
Description
OctKey.import_key() carries the only guard that stops an asymmetric public key from being used as an HMAC secret in authlib.jose. That guard is raw_key.startswith(POSSIBLE_UNSAFE_KEYS) — anchored at byte 0 — while the loader that consumes the identical bytes on the asymmetric path (cryptography.hazmat.primitives.serialization.load_pem_public_key / load_pem_x509_certificate) skips anything before the -----BEGIN line. A PEM public key or X.509 certificate carrying one leading byte — a newline, a space, four spaces of indentation, a UTF-8 BOM, or a comment line — is therefore not recognised, falls through, and becomes the HMAC secret. An attacker holding only the issuer's public key then mints an HS256 token with arbitrary claims that jwt.decode() accepts as authentic.
This is an incomplete fix of CVE-2024-37568 / GHSA-5357-c2jx-v7qh. That advisory's fix is exactly this guard (git log -S 'POSSIBLE_UNSAFE_KEYS' -- authlib/jose/rfc7518/oct_key.py returns a single commit, 3bea812 "fix:…
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-114616Authlib accepts an empty HMAC key, allowing JWS/JWT signature forgery (HS256/HS384/HS512)High 7.4 27 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
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-114615
- GitHub Advisory Database https://github.com/advisories/GHSA-7vr2-2fgp-9w7p