Improper Handling of Highly Compressed Data (Data Amplification) Affecting io.jsonwebtoken:jjwt-impl package, versions [0.12.0,]


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.89% (61st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-IOJSONWEBTOKEN-23387390
  • published3 Dec 2026
  • disclosed2 Dec 2026
  • creditZachariah Mithani

Introduced: 2 Dec 2026

NewCVE-2026-142242  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

There is no fixed version for io.jsonwebtoken:jjwt-impl.

Overview

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the doDecompress method of AbstractCompressionAlgorithm. An attacker who knows the recipient's public key can exhaust memory by sending a JWE that uses the RSA-OAEP, RSA1_5, or ECDH-ES key algorithm and sets the zip header to DEF or GZIP, since the compressed payload decompresses without any limit on the output size once AEAD decryption succeeds. A few hundred bytes of compressed data can expand to hundreds of megabytes, and this requires no prior authentication or possession of the recipient's private key, only the public key needed to construct any valid JWE.

CVSS Base Scores

version 4.0
version 3.1