CVE-2024-37568: Authlib has algorithm confusion with asymmetric public keys
lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. Unless an algorithm is specified in a jwt.decode call, HMAC verification is allowed with any asymmetric public key. (This is similar to CVE-2022-29217 and CVE-2024-33663.)
Published Jun 9, 2024 · Updated Nov 3, 2025
Affected packages
authlib
- Ecosystem
- PyPI
- Affected
- >= 0, < 1.3.1
- Fixed in
- 1.3.1
- Check
pip show authlib
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
lepture Authlib before 1.3.1 has algorithm confusion with asymmetric public keys. Unless an algorithm is specified in a jwt.decode call, HMAC verification is allowed with any asymmetric public key. (This is similar to CVE-2022-29217 and CVE-2024-33663.)
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-37568
- https://github.com/lepture/authlib/issues/654
- https://github.com/pypa/advisory-database/tree/main/vulns/authlib/PYSEC-2024-52.yaml
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IZI7HYGN7VZAYFV6UV3SRLYF7QGERXIU
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FHJI32SN4FNAUVNALVGOKWHNSQ6XS3M5
- https://www.vicarius.io/vsociety/posts/algorithm-confusion-in-lepture-authlib-cve-2024-37568
- https://lists.debian.org/debian-lts-announce/2025/10/msg00032.html
- https://github.com/advisories/GHSA-5357-c2jx-v7qh
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-114614
Authlib: is_secure_transport() loopback exemption can be bypassed with a userinfo component, allowing cleartext-HTTP URLs to non-loopback hosts
low2.6Oct 27, 2026CVE-2026-114615
Authlib incomplete algorithm-confusion fix permits HMAC forgery with prefixed public keys
high7.4Oct 27, 2026CVE-2026-114617
Authlib: ID token can disable its own nonce validation via the nonce_supported claim
medium4.2Oct 27, 2026CVE-2026-114618
Authlib: Default JWT bearer grant accepts assertions for the wrong audience
medium6.8Oct 27, 2026CVE-2026-114619
Authlib: OpenID implicit grant checks raw scope instead of allowed scope before issuing ID tokens
medium4.6Oct 27, 2026CVE-2026-114620
Authlib: Unvalidated request_uri fetch in JWT-secured authorization request (JAR) leading to SSRF
medium5.4Oct 27, 2026
