GitHub Advisory Database
GHSA-h4pw-wxh7-4vjj
Duplicate Advisory: python-jose denial of service via compressed JWE content
This advisory was withdrawn on 18 December 2025.
Details
Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-cjwg-qfpm-7377. This link is maintained to preserve external references.
Original Description
In python-jose 3.3.0 (specifically jwe.decrypt), a vulnerability allows an attacker to cause a Denial-of-Service (DoS) condition by crafting a malicious JSON Web Encryption (JWE) token with an exceptionally high compression ratio. When this token is processed by the server, it results in significant memory allocation and processing time during decompression.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | python-jose | All versions before 3.4.0 (fixed in 3.4.0) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-29370
- https://github.com/mpdavis/python-jose/issues/344
- https://github.com/mpdavis/python-jose/commit/483529ee93a3ab510ab579d4d4cc644dba926ade
- https://github.com/mpdavis/python-jose/releases/tag/3.4.0
- https://github.com/pypa/advisory-database/tree/main/vulns/python-jose/PYSEC-2025-185.yaml