Advisory record · GHSA-5357-c2jx-v7qh

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....

CVSS 7.5 HighEPSS 0.0039 · 33rd percentile

Published by the GitHub Advisory Database at 9 Jun 2024, 19:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
authlibPyPI<1.3.11.3.1
Identifiers
GHSA-5357-c2jx-v7qh · CVE-2024-37568 · PYSEC-2024-52
Weakness (CWE)
CWE-284
Published
9 Jun 2024
Updated
10 Jun 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Authlib versions before 1.3.1 are vulnerable to algorithm confusion when verifying JSON Web Tokens with asymmetric public keys. If the algorithm is not specified in a jwt.decode call, HMAC verification is accepted using the public key, so an attacker who can present a crafted token may be able to forge tokens that pass verification. Upgrade authlib to version 1.3.1 or later. Until then, specify the expected algorithm explicitly in every jwt.decode call.

Written 10 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
7.5 High 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N ADP (CISA-ADP)
  • CISA KEV Not listed.
  • EPSS 0.0039, the 33rd percentile, on 21 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

This record came from the full history of the GitHub Advisory Database, published 9 Jun 2024. New records show when each source confirmed them.

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.