Advisory

PYSEC-2026-70

Also known as: CVE-2026-39373, GHSA-fjrm-76x2-c4q4

Summary

The record has no summary.

Details

JWCrypto implements JWK, JWS, and JWE specifications using python-cryptography. Prior to 1.5.7, an unauthenticated attacker can exhaust server memory by sending crafted JWE tokens with ZIP compression. The existing patch for CVE-2024-28102 limits input token size to 250KB but does not validate the decompressed output size. An unauthenticated attacker can cause memory exhaustion on memory-constrained systems. A token under the 250KB input limit can decompress to approximately 100MB. This vulnerability is fixed in 1.5.7.

Severity

Medium Basis: CVSS v3 score 5.3, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Dates

Published
2026-04-07 20:16 UTC
Modified
2026-05-21 15:00 UTC

Affected packages and fixes

jwcrypto

PyPI · All systems

Affected

  • introduced 0, fixed 1.5.7 (ecosystem)

Fixed versions

1.5.7

Fix

  • Fixed version 1.5.7
    pip install --upgrade jwcrypto==1.5.7

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences