Improper Handling of Highly Compressed Data (Data Amplification) Affecting @pdfme/pdf-lib package, versions <5.5.10


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept

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-JS-PDFMEPDFLIB-15746946
  • published22 Mar 2026
  • disclosed20 Mar 2026
  • creditrestriction

Introduced: 20 Mar 2026

CVE NOT AVAILABLE CWE-409  (opens in a new tab)

How to fix?

Upgrade @pdfme/pdf-lib to version 5.5.10 or higher.

Overview

@pdfme/pdf-lib is a Create and modify PDF files with JavaScript

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) through the ensureBuffer function in the stream decoding. An attacker can exhaust system memory and cause application crashes by supplying a specially crafted PDF file with a highly compressed FlateDecode stream.

References

CVSS Base Scores

version 4.0
version 3.1