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

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.4 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-05-24 · Modified: 2025-04-23
- Aliases: MGASA-2022-0244, SUSE-SU-2022:2401-1, SUSE-SU-2022:2402-1, SUSE-SU-2022:2403-1, SUSE-SU-2022:3545-1, SUSE-SU-2023:0794-1, GHSA-ffqj-6fqr-9h24, PYSEC-2022-202, UBUNTU-CVE-2022-29217, USN-5526-1, DEBIAN-CVE-2022-29217, openSUSE-SU-2025:14987-1, ALPINE-CVE-2022-29217
- Record: https://cvemate.com/vulnerability/CVE-2022-29217 · JSON: https://cvemate.com/vulnerability/CVE-2022-29217/json

## Description

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

## Signals

- CVSS: 7.5 high (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 1.355%, percentile 72.566%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 41)

- alpine py3-jwt (Alpine Linux): \< 2.4.0-r0
- debian pyjwt (Debian): \< 2.4.0-1
- ubuntu pyjwt (Ubuntu): \< 1.5.3+ds1-1ubuntu0.1 \| \< 1.7.1-2ubuntu2.1 \| \< 2.3.0-1ubuntu0.1
- fedoraproject fedora: 35 \| 36
- jpadilla pyjwt: ≥ 1.5.0, \< 2.4.0
- mageia python-pyjwt (Mageia): \< 2.4.0-1.mga8
- pyjwt\_project pyjwt: ≥ 1.5.0, \< 2.4.0
- PyPI pyjwt (PyPI): \< 9c528670c455b8d948aff95ed50e22940d1ad3fc \| ≥ 1.5.0, \< 2.4.0
- opensuse python-PyJWT&distro=openSUSE Leap 15.3 (openSUSE): \< 1.7.1-150200.3.3.1
- opensuse python-PyJWT&distro=openSUSE Leap 15.4 (openSUSE): \< 1.7.1-150200.3.3.1 \| \< 2.4.0-150200.3.6.2
- opensuse python-PyJWT&distro=openSUSE Tumbleweed (openSUSE): \< 2.10.1-2.1
- suse python-PyJWT&distro=SUSE Enterprise Storage 6 (SUSE Linux Enterprise): \< 1.7.1-150100.6.7.1
- suse python-PyJWT&distro=SUSE Enterprise Storage 7 (SUSE Linux Enterprise): \< 1.7.1-150200.3.3.1 \| \< 2.4.0-150200.3.6.2
- suse python-PyJWT&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 2.4.0-150200.3.6.2
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS (SUSE Linux Enterprise): \< 1.7.1-150100.6.7.1
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS (SUSE Linux Enterprise): \< 1.7.1-150100.6.7.1
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS (SUSE Linux Enterprise): \< 1.7.1-150200.3.3.1
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS (SUSE Linux Enterprise): \< 1.7.1-150200.3.3.1 \| \< 2.4.0-150200.3.6.2
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS (SUSE Linux Enterprise): \< 2.4.0-150200.3.6.2
- suse python-PyJWT&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS (SUSE Linux Enterprise): \< 2.4.0-150200.3.6.2

## References (first 20 of 32)

- <https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24>
- <https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc>
- <https://github.com/jpadilla/pyjwt/releases/tag/2.4.0>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/>
- <https://www.vicarius.io/vsociety/posts/risky-algorithms-algorithm-confusion-in-pyjwt-cve-2022-29217>
- <https://advisories.mageia.org/MGASA-2022-0244.html>
- <https://bugs.mageia.org/show_bug.cgi?id=30485>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222401-1/>
- <https://bugzilla.suse.com/1199756>
- <https://www.suse.com/security/cve/CVE-2022-29217>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222402-1/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20222403-1/>
- <https://www.suse.com/support/update/announcement/2022/suse-su-20223545-1/>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230794-1/>
- <https://bugzilla.suse.com/1176785>
- <https://bugzilla.suse.com/1199282>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-29217>
- <https://github.com/jpadilla/pyjwt>

---

Data as of 2026-12-05T10:27:41.566Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
