Unchecked Input for Loop Condition 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.54% (47th 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-JS-EXCELJSHARDENED-22552472
  • published15 Nov 2026
  • disclosed13 Nov 2026
  • creditMatéo Florian Callec

Introduced: 13 Nov 2026

NewCVE-2026-128342  (opens in a new tab)
CWE-606  (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 Unchecked Input for Loop Condition via an unbounded sheetId value in xl/workbook.xml. Worksheets are stored in a sparse array indexed by their sheetId, so every access that walks the array - worksheets, getWorksheet(), and writeBuffer() - costs time proportional to the largest id present. An attacker can supply a workbook containing a sheetId up to the 32-bit limit, causing the event loop to stall for tens of seconds on each subsequent worksheet access or write operation, blocking all other request processing.

CVSS Base Scores

version 4.0
version 3.1