VYPR
Moderate severityNVD Advisory· Published Sep 6, 2018· Updated Sep 17, 2024

CVE-2018-16459

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.

PackageAffected versionsPatched versions
exceljsnpm
< 1.6.01.6.0

Affected products

2
  • ghsa-coords
    Range: < 1.6.0
  • https://github.com/guyonroche/exceljsv5
    Range: 1.6.0

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.