Vulnerability in Davedoesdev Python-Jwt
CVE-2022-39227
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.1 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.053, 92.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Davedoesdev Python-Jwt — versions < 3.3.4
- Python-Jwt Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- user0x1337/CVE-2022-39227 (22 stars, last pushed 2024-03-19): CVE-2022-39227 : Proof of Concept
- melikesraoz/cve-2022-39227-jwt-auth-bypass-demo (1 star, last pushed 2026-05-20)
- NoSpaceAvailable/CVE-2022-39227 (last pushed 2024-03-28): A working POC found while doing a HTB challenge. Original: https://github.com/user0x1337/CVE-2022-39227
Also mentioned in 5 other repositories (ARPSyndicate/cvemon, davedoesdev/python-jwt, hackthebox/cyber-apocalypse-2024, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/davedoesdev/python-jwt/security/advisories/GHSA-5p8v-58qm-c7fp (Patch, Third Party Advisory)
- github.com/davedoesdev/python-jwt/commit/88ad9e67c53aa5f7c43ec4aa52ed34b7930068… (Patch)
- github.com/pypa/advisory-database/blob/main/vulns/python-jwt/PYSEC-2022-259.yaml (Third Party Advisory)
- www.vicarius.io/vsociety/posts/authentication-bypass-in-python-jwt
This CVE has public exploit evidence. See the latest CVEs with public exploits.