PyPI: python-jose

CVE-2024-33664

Safety vulnerability ID: SFTY-20240426-11437

Safety legacy ID: pyup.io-70716

Affected versions of Python-jose allow attackers to cause a denial of service (resource consumption) during a decode via a crafted JSON Web Encryption (JWE) token with a high compression ratio, aka a "JWT bomb." This is similar to CVE-2024-21319.

Created at: Nov 6, 2025Updated at: Nov 6, 2025

Overview

python-jose denial of service via compressed JWE content

Advisory

Affected versions of Python-jose allow attackers to cause a denial of service (resource consumption) during a decode via a crafted JSON Web Encryption (JWE) token with a high compression ratio, aka a "JWT bomb." This is similar to CVE-2024-21319.

Affected Package

Affecting python-jose package, versions
<3.4.0

Also affects

---

How to Fix

Upgrade
python-jose
to
3.4.0
or higher.

Mitigation and Workarounds

---

Vulnerable Functions

Functions linked to known vulnerabilities.

Vulnerable function data is available for Enterprise customers

Book a call with us to see Safety in action.

Safety

Verified by Safety

Our Cybersecurity Intelligence Team reviewed this vulnerability. We combine public data with our own research to find issues not yet reported to public sources.

Learn more