CVE-2022-29217: Key confusion through non-blocklisted public key formats in PyJWT
Vulnerability summary
CVE-2022-29217 is a high (CVSS 7.5) vulnerability in fedoraproject fedora. EPSS estimates a 1.35% chance of exploitation in the next 30 days, higher than 72.5% of scored vulnerabilities.
Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 24-05-2022PublishedVulnerability first disclosed.
- 23-04-2025Last modifiedVulnerability information updated.
Description
PyJWT is a Python implementation of RFC 7519. PyJWT supports multiple different JWT signing algorithms. With JWT, an attacker submitting the JWT token can choose the used signing algorithm. The PyJWT library requires that the application chooses what algorithms are supported. The application can specify `jwt.algorithms.get_default_algorithms()` to get support for all algorithms, or specify a single algorithm. The issue is not that big as `algorithms=jwt.algorithms.get_default_algorithms()` has to be used. Users should upgrade to v2.4.0 to receive a patch for this issue. As a workaround, always be explicit with the algorithms that are accepted and expected when decoding.
CVSS metrics
7 scores · 6 sources · 2 versions- CVE.orgCNA7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · PypiEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated7.4HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:NDiffers
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- OSV · AlpineEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
1.35%
Chance of exploitation in the next 30 days
Percentile
73%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.35% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse30 products
- python-PyJWT&distro=SUSE Enterprise Storage 6< 1.7.1-150100.6.7.1
- python-PyJWT&distro=SUSE Enterprise Storage 7< 1.7.1-150200.3.3.1 | < 2.4.0-150200.3.6.2
- python-PyJWT&distro=SUSE Enterprise Storage 7.1< 2.4.0-150200.3.6.2
- python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS< 1.7.1-150100.6.7.1
- python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS< 1.7.1-150100.6.7.1
Opensuse3 products
- python-PyJWT&distro=openSUSE Leap 15.3< 1.7.1-150200.3.3.1
- python-PyJWT&distro=openSUSE Leap 15.4< 1.7.1-150200.3.3.1 | < 2.4.0-150200.3.6.2
- python-PyJWT&distro=openSUSE Tumbleweed< 2.10.1-2.1
Alpine1 product
- py3-jwt< 2.4.0-r0
Debian1 product
- pyjwt< 2.4.0-1
Fedoraproject1 product
- fedoraEOL35 | 36
Jpadilla1 product
- pyjwt≥ 1.5.0, < 2.4.0
Mageia1 product
- python-pyjwt< 2.4.0-1.mga8
Pyjwt_project1 product
- pyjwt≥ 1.5.0, < 2.4.0
PyPI1 product
- pyjwt< 9c528670c455b8d948aff95ed50e22940d1ad3fc | ≥ 1.5.0, < 2.4.0
Ubuntu1 product
- pyjwt< 1.5.3+ds1-1ubuntu0.1 | < 1.7.1-2ubuntu2.1 | < 2.3.0-1ubuntu0.1
10 vendors · 41 products
References
32 links- github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24X Refsource CONFIRMWEBAdvisoryREPORTIssue TrackingThird Party Advisory
- github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fcX Refsource MISCWEBFIXREPORTPatchThird Party Advisory
- github.com/jpadilla/pyjwt/releases/tag/2.4.0X Refsource MISCWEBREPORTRelease NotesThird Party Advisory
Show all 32 references
- github.com/jpadilla/pyjwtPACKAGE
- lists.opensuse.org/archives/…Advisory