Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.
Start learningUpgrade exceljs-hardened to version 5.1.0 or higher.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via xlsx.load() when parsing a workbook containing a worksheet <col> element with an unbounded max attribute. For each <col min max> entry, one Column object is allocated for every column index in the range, and the upper bound is not capped at the 16,384 columns Excel supports. An attacker can supply a file of a few kilobytes with max="300000000", causing the process to allocate hundreds of millions of Column objects and abort with a fatal V8 heap out-of-memory error that cannot be caught with try/catch.
In xl/worksheets/sheet1.xml of any valid workbook:
<cols><col min="1" max="300000000" width="10" customWidth="1"/></cols>
await new ExcelJS.Workbook().xlsx.load(buffer);
// FATAL ERROR: ... JavaScript heap out of memory
The file is about 6 KB. The process aborts in a few seconds.