Allocation of Resources Without Limits or Throttling Affecting exceljs-hardened package, versions <5.1.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.62% (51st 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 Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-EXCELJSHARDENED-22549709
  • published14 Nov 2026
  • disclosed13 Nov 2026
  • creditMatéo Florian Callec

Introduced: 13 Nov 2026

NewCVE-2026-128340  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade exceljs-hardened to version 5.1.0 or higher.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via DefinedNames.addEx, which expands cell ranges from xl/workbook.xml cell by cell into a matrix during xlsx.load(). A workbook containing a defined name that covers an entire sheet (e.g., $A$1:$XFD$1048576, approximately 17 billion cells) causes a fatal V8 heap out-of-memory error that cannot be caught with try/catch and terminates the entire Node.js process.

PoC

In xl/workbook.xml of any valid workbook that contains a sheet named S, add inside <definedNames>:

<definedName name="x">S!$A$1:$XFD$1048576</definedName>
await new ExcelJS.Workbook().xlsx.load(buffer);
// FATAL ERROR: ... JavaScript heap out of memory   (node --max-old-space-size=512)

The file is about 6 KB.

Note: The PoC states a Node.js process run with --max-old-space-size=512 and a workbook file of approximately 6 KB.

CVSS Base Scores

version 4.0
version 3.1