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 Details
- CVSS 3.1 Base Score: 7.4
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | alpine-linux-upgrade-py3-jwt | Aug 22, 2024 | May 24, 2022 | |
| Arch Linux | arch-linux-upgrade-latest | Jul 11, 2025 | May 24, 2022 | |
| Debian | debian-upgrade-pyjwt | Jul 30, 2024 | May 24, 2022 | |
| Huawei Euleros 2_0_sp10 | huawei-euleros-2_0_sp10-upgrade-python-jwt-help | Oct 11, 2022 | May 24, 2022 | |
| Huawei Euleros 2_0_sp9 | huawei-euleros-2_0_sp9-upgrade-python-jwt-help | Sep 14, 2022 | May 24, 2022 | |
| Redhat_linux | no-fix-redhat-rpm-package | Jul 9, 2025 | May 24, 2022 | |
| Suse | — | suse-upgrade-python-pyjwtsuse-upgrade-python2-pyjwtsuse-upgrade-python3-pyjwt | Oct 26, 2022 | May 24, 2022 |
| Ubuntu | ubuntu-upgrade-python-jwtubuntu-upgrade-python3-jwt | Mar 22, 2023 | May 24, 2022 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub