7.5

CVE-2022-29217: Key confusion through non-blocklisted public key formats in PyJWT

Modified
AliasesMGASA-2022-0244SUSE-SU-2022:2401-1SUSE-SU-2022:2402-1
Published 24-05-2022Last modified 23-04-2025

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.

Priority
Prioritisesevere

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?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
1.35%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 0 · Related 1

Timeline

  1. 24-05-2022
    PublishedVulnerability first disclosed.
  2. 23-04-2025
    Last 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

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

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

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
Jpadilla1 product
Mageia1 product
  • python-pyjwt< 2.4.0-1.mga8
Pyjwt_project1 product
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
Show all 32 references