CVE-2022-29217
published high CVSS 3.1 · 7.4Key confusion through non-blocklisted public key formats in PyJWT
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| jpadilla | — | pyjwt>= 1.5.0, < 2.4.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-076 | Fixed | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | pyjwt | Advisory build | 1.5.3+ds1-1ubuntu0.1 | USN-5526-1 |
| Alpine Linux | edge | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | python-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| Amazon Linux | AL2023 | python-jwtnoarch | Listed in advisory | Not stated | ALAS2023-2023-076 |
| Ubuntu | focal | pyjwt | Advisory build | 1.7.1-2ubuntu2.1 | USN-5526-1 |
| Ubuntu | jammy | pyjwt | Advisory build | 2.3.0-1ubuntu0.1 | USN-5526-1 |
Show 60 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.16 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.18 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-jwt | Fixed | 2.4.0-r0 | Package fix record |
| SUSE / openSUSE | SLE-12 | python3-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP3 | python-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP3 | python3-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP4 | python-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP4 | python3-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP5 | python-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-12-SP5 | python3-PyJWTnoarch | Advisory build | 1.5.3-3.16.1 | SUSE-SU-2022:2401-1 |
| SUSE / openSUSE | SLE-15 | python3-PyJWTnoarch | Advisory build | 1.5.3-150000.3.3.1 | SUSE-SU-2022:3545-1 |
| SUSE / openSUSE | SLE-15-SP1 | python2-PyJWTnoarch | Advisory build | 1.7.1-150100.6.7.1 | SUSE-SU-2022:2403-1 |
| SUSE / openSUSE | SLE-15-SP1 | python3-PyJWTnoarch | Advisory build | 1.7.1-150100.6.7.1 | SUSE-SU-2022:2403-1 |
| SUSE / openSUSE | SLE-15-SP2 | python2-PyJWTnoarch | Advisory build | 1.7.1-150100.6.7.1 | SUSE-SU-2022:2403-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | SLE-15-SP2 | python3-PyJWTnoarch | Advisory build | 2.4.0-150200.3.6.2 | SUSE-SU-2023:0794-1 |
| SUSE / openSUSE | SLE-15-SP3 | python2-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | SLE-15-SP3 | python3-PyJWTnoarch | Advisory build | 2.4.0-150200.3.6.2 | SUSE-SU-2023:0794-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | SLE-15-SP4 | python3-PyJWTnoarch | Advisory build | 2.4.0-150200.3.6.2 | SUSE-SU-2023:0794-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python2-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-PyJWTnoarch | Advisory build | 1.7.1-150200.3.3.1 | SUSE-SU-2022:2402-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | python3-PyJWTnoarch | Advisory build | 2.4.0-150200.3.6.2 | SUSE-SU-2023:0794-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyJWTaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyJWTppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyJWTs390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-PyJWTx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyJWTaarch64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyJWTppc64le | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyJWTs390x | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-PyJWTx86_64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyJWTaarch64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyJWTppc64le | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyJWTs390x | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-PyJWTx86_64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyJWTaarch64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyJWTppc64le | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyJWTs390x | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-PyJWTx86_64 | Advisory build | 2.10.1-2.1 | OPENSUSE-SU-2025:14987-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-PyJWTaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-PyJWTppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-PyJWTs390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-PyJWTx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-PyJWTaarch64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-PyJWTppc64le | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-PyJWTs390x | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-PyJWTx86_64 | Advisory build | 2.4.0-1.1 | OPENSUSE-SU-2024:12139-1 |
| Ubuntu | bionic | python-jwt | Advisory build | 1.5.3+ds1-1ubuntu0.1 | USN-5526-1 |
| Ubuntu | bionic | python3-jwt | Advisory build | 1.5.3+ds1-1ubuntu0.1 | USN-5526-1 |
| Ubuntu | focal | python3-jwt | Advisory build | 1.7.1-2ubuntu2.1 | USN-5526-1 |
| Ubuntu | jammy | python3-jwt | Advisory build | 2.3.0-1ubuntu0.1 | USN-5526-1 |
| Amazon Linux | AL2023 | python-jwtsrc | Listed in advisory | Not stated | ALAS2023-2023-076 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.4 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| jpadilla | pyjwt | >= 1.5.0, < 2.4.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-327 CWE-327: Use of a Broken or Risky Cryptographic Algorithm
References
6- https://github.com/jpadilla/pyjwt/commit/9c528670c455b8d948aff95ed50e22940d1ad3fc
- https://github.com/jpadilla/pyjwt/releases/tag/2.4.0
- https://github.com/jpadilla/pyjwt/security/advisories/GHSA-ffqj-6fqr-9h24
- FEDORA-2022-4ae9110f51 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/
- FEDORA-2022-3cf456dc20 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/
- https://www.vicarius.io/vsociety/posts/risky-algorithms-algorithm-confusion-in-pyjwt-cve-2022-29217
Provider assertions
3GitHub_M · cna
Key confusion through non-blocklisted public key formats in PyJWT
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fe5dac19fae88cf90c9ff471d0fe386c54453f904a972ca7eec08cea7a62deb2
- Ingested
- 23 Sep 2026, 07:59:45 UTC
- Source record
- Official CVE record