Live threats

All CVEs / Pyjwt Project

CVE-2022-29217Pyjwt Project Pyjwt

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
May 24, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-327
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pyjwt.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI pyjwt ≥ 1.5.0 < 2.4.0 2.4.0 pip install "pyjwt>=2.4.0"
PyPI pyjwt ≥ 1.5.0 < 2.4.0 2.4.0 pip install "pyjwt>=2.4.0"

Per OSV / GitHub Advisories (GHSA-ffqj-6fqr-9h24, PYSEC-2022-202). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
pyjwt_projectpyjwt≥ 1.5.0 < 2.4.0
fedoraprojectfedora35
fedoraprojectfedora36

Official sources

References

Links published by the sources. Open them with care.