ZeroHour

CVE-2026-82864

mass

Unbounded buffer growth DoS in pdfme pdf-lib (decompression bomb)

CVSS 4.0
7.1 high
EPSS
<1%p16
Published
()
Modified
AI analysis

pdfme pdf-lib before version 5.5.10 contains an unbounded buffer growth flaw (CWE-409) in the DecodeStream.ensureBuffer() method used when parsing PDF streams. An attacker who can supply a crafted PDF, for example by uploading a file to a web service that parses it, can embed a FlateDecode stream that is small in compressed form but expands to hundreds of megabytes, causing the parser to allocate memory without limit. The result is denial of service: the Node.js process can be killed by memory exhaustion, or a browser tab can freeze during PDF parsing. Any application, API, or website that parses attacker-supplied PDFs with an affected version is exposed, while deployments that only generate PDFs without parsing untrusted input are largely unaffected. No public proof-of-concept is known, the issue is not in CISA's KEV catalog, and EPSS puts the 30-day exploitation probability at about 0.2%, so no active exploitation is currently known.

What to do: Upgrade pdf-lib (including when pulled in via pdfme) to version 5.5.10 or later. Until upgraded, cap uploaded PDF file sizes, run parsing of untrusted PDFs in isolated worker processes or sandboxes with memory limits and timeouts so a decompression bomb cannot take down the main service. Audit your dependency tree to confirm the resolved pdf-lib version is 5.5.10 or later.

Affected
pdfme pdf-liball versions before 5.5.10
Estimated exposure
masson the order of 1,000,000+ downstream installs (widely used npm PDF library, with only deployments parsing attacker-supplied PDFs practically exposed) — Estimated from the library's broad adoption in the Node.js/browser package ecosystem (order of millions of weekly npm downloads), noting that the flaw only triggers where untrusted PDFs are actually parsed.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

pdfme pdf-lib versions before 5.5.10 contain an unbounded buffer growth vulnerability in the DecodeStream.ensureBuffer() method that allows attackers to cause denial of service by supplying a crafted PDF with a FlateDecode stream containing a decompression bomb. Attackers can upload a small compressed PDF that decompresses to hundreds of megabytes, exhausting memory and crashing the Node.js process or freezing browser tabs during PDF parsing.

Weakness
CWE-409
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.