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.
Workarounds
If your Grid configuration comes from a source you do not fully control, paste this snippet right after importing the Grid module:
Affected software
| Software | Affected versions |
|---|---|
@highcharts/grid-litenpm · osv:npm:@highcharts/grid-lite |
|
@highcharts/grid-pronpm · osv:npm:@highcharts/grid-pro |
|
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
About @highcharts/grid-pro
- Weekly downloads (npm)
- 6,850npm, 23 Nov 2026
Vulnerabilities in @highcharts/grid-pro
- In our list
- 5
- Published in the last 12 months
- 5
- Critical, last 12 months
- 0
- High, last 12 months
- 4
- Known exploited
- 0
- CVE-2026-118255Highcharts Grid: `javascript:` URL in credits.href runs script on clickHigh 28 Oct 2026
- CVE-2026-118254Highcharts Grid parses pagination language options as HTMLHigh 28 Oct 2026
- CVE-2026-116797Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`High 28 Oct 2026
- CVE-2026-118247Highcharts Dashboards / Grid Pro: `DataTable.setCell` and column writers treat `__proto__` as an existing column.Medium 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118242
- GitHub Advisory Database https://github.com/advisories/GHSA-6g3c-p4fg-xv47