CVE-2026-142242: JJWT through 0.13.0 Memory Exhaustion via Unbounded JWE Payload Decompression
JJWT through 0.13.0 contains an unbounded decompression vulnerability in DefaultJwtParser that allows unauthenticated remote attackers to exhaust memory by submitting highly compressible JWEs. Attackers who know the recipient's public key can craft small DEF or GZIP compressed JWEs using RSA-OAEP, RSA15 or ECDH-ES that inflate to hundreds of megabytes, causing OutOfMemoryError and denial of service.
Affected Software
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using JJWT through 0.13.0 that parse attacker-supplied JWE tokens are exposed when the attacker can obtain the recipient's public key. The affected compressed JWE cases use DEF or GZIP with RSA-OAEP, RSA1_5, or ECDH-ES.
Does exploitation require an authenticated account or user interaction?
No. The issue is exploitable by an unauthenticated remote attacker and does not require user interaction.
What is the expected effect of a successful attack?
A small, highly compressible JWE can expand to hundreds of megabytes during parsing, potentially causing an OutOfMemoryError. This results in denial of service rather than confidentiality or integrity impact.