# CVE-2022-39227: Python-jwt subject to Authentication Bypass by Spoofing

- Severity: Critical 9.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 4.26%, higher than 92% of CVEs (2026-11-30)
- Published: 2022-09-01T18:51:51.000Z
- Modified: 2026-06-17T04:57:57.283Z
- Also known as: GHSA-5p8v-58qm-c7fp, PYSEC-2022-259
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

python-jwt is a module for generating and verifying JSON Web Tokens. Versions prior to 3.3.4 are subject to Authentication Bypass by Spoofing, resulting in identity spoofing, session hijacking or authentication bypass. An attacker who obtains a JWT can arbitrarily forge its contents without knowing the secret key. Depending on the application, this may for example enable the attacker to spoof other user's identities, hijack their sessions, or bypass authentication. Users should upgrade to version 3.3.4. There are no known workarounds.

(As written by CVE List.)

## Affected

- davedoesdev python-jwt: < 3.3.4
- python-jwt (PyPI): before 3.3.4; from f6d1451012c6a04c2fb1940f0bbd93bb6cf2b025 before 88ad9e67c53aa5f7c43ec4aa52ed34b7930068c9; from 3.0.0 before 3.3.4
- python-jwt_project python-jwt: from 3.0.0 before 3.3.4

## Every score

- GitHub_M: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:4.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/davedoesdev/python-jwt/security/advisories/GHSA-5p8v-58qm-c7fp> (patch, third-party-advisory, web)
- <https://github.com/davedoesdev/python-jwt/commit/88ad9e67c53aa5f7c43ec4aa52ed34b7930068c9> (fix, patch, web)
- <https://github.com/pypa/advisory-database/blob/main/vulns/python-jwt/PYSEC-2022-259.yaml> (third-party-advisory, web)
- <https://www.vicarius.io/vsociety/posts/authentication-bypass-in-python-jwt> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-39227> (advisory)
- <https://github.com/davedoesdev/python-jwt/commit/6c5075469847b9e8b6e5336077d989d77a4d2bf1> (web)
- <https://github.com/davedoesdev/python-jwt> (package)

## Sources

- CVE List: [CVE-2022-39227](https://www.cve.org/CVERecord?id=CVE-2022-39227), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-5p8v-58qm-c7fp](https://github.com/advisories/GHSA-5p8v-58qm-c7fp), CC-BY-4.0, modified 2024-07-10
- NVD: [CVE-2022-39227](https://nvd.nist.gov/vuln/detail/CVE-2022-39227), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2022-259](https://osv.dev/vulnerability/PYSEC-2022-259), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2022-39227 · Whole record: https://cve.day/CVE-2022-39227.json · Rebuilt by cve.day 2026-11-25T22:58:15.218Z
