# CVE-2022-29217: python3-jwt: PyJWT is a Python implementation of RFC 7519

CVE-2022-29217 is fixed in 4 products on 1 platform, first by python-jwt 1.5.3+ds1-1ubuntu0.1, released May 24, 2022. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2022-29217
- Priority: High
- CVSS: 7.5 (Medium)
- EPSS: 0.0136
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: May 24, 2022

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

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | pyjwt Debian 12.15 (bookworm) | 2.4.0-1 | [DEBIAN-CVE-2022-29217](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29217.md) | May 24, 2022 |
| Linux | pyjwt Debian 13.5 (trixie) | 2.4.0-1 | [DEBIAN-CVE-2022-29217](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29217.md) | May 24, 2022 |
| Linux | pyjwt Debian 14 | 2.4.0-1 | [DEBIAN-CVE-2022-29217](https://patchblox.com/security/data/fix/linux/debian-cve-2022-29217.md) | May 24, 2022 |
| Linux | python-jwt Ubuntu 18.04.6 LTS (bionic) | 1.5.3+ds1-1ubuntu0.1 | [python-jwt 1.5.3+ds1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python-jwt-1.5.3-ds1-1ubuntu0.1.md) | May 24, 2022 |
| Linux | python3-jwt Ubuntu 18.04.6 LTS (bionic) | 1.5.3+ds1-1ubuntu0.1 | [python3-jwt 1.5.3+ds1-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-bionic-python3-jwt-1.5.3-ds1-1ubuntu0.1.md) | May 24, 2022 |
| Linux | python3-jwt Ubuntu 20.04 LTS (focal) | 1.7.1-2ubuntu2.1 | [python3-jwt 1.7.1-2ubuntu2.1](https://patchblox.com/security/data/fix/linux/ubuntu-focal-python3-jwt-1.7.1-2ubuntu2.1.md) | May 24, 2022 |
| Linux | python3-jwt Ubuntu 22.04.1 LTS (jammy) | 2.3.0-1ubuntu0.1 | [python3-jwt 2.3.0-1ubuntu0.1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-python3-jwt-2.3.0-1ubuntu0.1.md) | May 24, 2022 |
| Linux | python3-jwt amzn 2023 | 2.4.0-1.amzn2023.0.1 | [ALAS2023-2023-076](https://patchblox.com/security/data/fix/linux/alas2023-2023-076.md) | Feb 17, 2023 |
| Linux | python3-jwt+crypto amzn 2023 | 2.4.0-1.amzn2023.0.1 | [ALAS2023-2023-076](https://patchblox.com/security/data/fix/linux/alas2023-2023-076.md) | Feb 17, 2023 |

---

Data as of 2026-11-08T06:59:42Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
