CVE-2022-29217Pyjwt Project Pyjwt
High 7.5 No auth needed
Follow: this CVE · Pyjwt Project · Pyjwt Project Pyjwt We alert you by email or Slack (account required).
- 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.
What to do
- Apply the vendor's security update for Pyjwt.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| pyjwt_project | pyjwt | ≥ 1.5.0 < 2.4.0 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Issue Tracking Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- www.vicarius.io