{"cve":"CVE-2022-29217","nvd":{"published":"2022-05-24T15:15:07.767","modified":"2026-06-17T04:39:50.960","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-327"],"references":["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","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/5PK7IQCBVNLYJEFTPHBBPFP72H4WUFNX/","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6HIYEYZRQEP6QTHT3EHH3RGFYJIHIMAO/"],"products":["fedoraproject:fedora","pyjwt_project:pyjwt"],"source":"nvd","synced_at":"2026-10-19T21:31:59.322382750+00:00"},"epss":{"cve":"CVE-2022-29217","score":0.01355,"percentile":0.71624,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-ffqj-6fqr-9h24","url":"https://osv.dev/vulnerability/GHSA-ffqj-6fqr-9h24","summary":"Key confusion through non-blocklisted public key formats","modified":"2024-10-15T16:27:42.751871Z","packages":[{"ecosystem":"PyPI","name":"pyjwt","purl":"pkg:pypi/pyjwt","ranges":[">=1.5.0 <2.4.0"],"fixed":["2.4.0"]}]},{"id":"PYSEC-2022-202","url":"https://osv.dev/vulnerability/PYSEC-2022-202","summary":"","modified":"2023-11-08T04:09:10.999573Z","packages":[{"ecosystem":"PyPI","name":"pyjwt","purl":"pkg:pypi/pyjwt","ranges":[">=1.5.0 <2.4.0"],"fixed":["2.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}