All vulnerabilities

npm

CVE-2026-118242

Highcharts Grid: custom icon definition objects written with raw `setAttribute` on `<path>`

Severity
High
Published
28 Oct 2026
Last changed
28 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
3.2.0
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Also known as
GHSA-6g3c-p4fg-xv47
Sources
OSV.dev and GitHub

Description

A custom icon supplied under rendering.icons as an icon definition object is built by creating an SVG path for each of its child entries and setting every key of that entry as an attribute of the path, without filtering the attribute names; only the string form of the option is passed through the markup allow-list. An attacker who controls the Grid configuration can therefore supply child entries whose keys name event handlers, and those handlers execute in the origin of the page hosting the Grid. Custom icons take precedence over the built-in ones, so the attacker can replace icons that render without any further configuration, such as the sort icon shown in every column header by default and the pagination controls where pagination is enabled, and does not need any reference to a custom icon name. Exploitation requires that untrusted data reach the Grid configuration and that a user hover over or activate an affected icon.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

If your Grid configuration comes from a source you do not fully control, paste this snippet right after importing the Grid module:

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
@highcharts/grid-litenpm · osv:npm:@highcharts/grid-lite
  • From 2.3.0 before 3.2.0
@highcharts/grid-pronpm · osv:npm:@highcharts/grid-pro
  • From 2.3.0 before 3.2.0

About @highcharts/grid-lite

Weekly downloads (npm)
7,534npm, 23 Nov 2026

Vulnerabilities in @highcharts/grid-lite

In our list
2
Published in the last 12 months
2
Critical, last 12 months
0
High, last 12 months
2
Known exploited
0
Search the list for @highcharts/grid-lite

About @highcharts/grid-pro

Weekly downloads (npm)
6,850npm, 23 Nov 2026

References