CVE-2018-16459
Description
An unescaped payload in exceljs < 1.6.0 allows stored XSS via a cell value when the worksheet is displayed in a browser.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
An unescaped payload in exceljs < 1.6.0 allows stored XSS via a cell value when the worksheet is displayed in a browser.
Vulnerability
A stored cross-site scripting (XSS) vulnerability exists in the npm package exceljs before version 1.6.0. The library fails to escape user-supplied cell values when rendering an Excel worksheet in a browser environment (e.g., using the HTML output feature). An attacker who can control a cell's content can inject arbitrary HTML or JavaScript that will be executed in the context of the viewer's browser session. Affected versions are all prior to 1.6.0 [1] [2] [3].
Exploitation
An attacker must be able to write a malicious payload into a cell value of an Excel workbook that is subsequently viewed via exceljs's HTML rendering. No special network position or authentication is required beyond the ability to supply the crafted workbook. When the victim opens the workbook in a browser using the library's display functionality, the unescaped payload executes as part of the rendered page [1] [2].
Impact
Successful exploitation leads to cross-site scripting (XSS). The attacker can execute arbitrary JavaScript in the victim's browser, potentially leading to session hijacking, data theft, or actions performed on behalf of the victim. The impact is moderate and limited by the same-origin policy, though the attacker gains no direct server-side access [3].
Mitigation
Upgrade exceljs to version 1.6.0 or later, which includes proper escaping of cell values for HTML contexts [3]. No other workarounds are documented in the available references. The vulnerability is not currently listed in CISA's Known Exploited Vulnerabilities catalog.
AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
exceljsnpm | < 1.6.0 | 1.6.0 |
Affected products
2- https://github.com/guyonroche/exceljsv5Range: 1.6.0
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
5- github.com/advisories/GHSA-2j2j-8rrv-264gghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-16459ghsaADVISORY
- github.com/nodejs/security-wg/blob/master/vuln/npm/464.jsonghsaWEB
- hackerone.com/reports/356809ghsax_refsource_MISCWEB
- www.npmjs.com/advisories/733ghsaWEB
News mentions
0No linked articles in our index yet.