Highcharts Grid XSS in custom SVG icons
highcharts · @highcharts grid-lite · @highcharts grid-pro
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| @highcharts/grid-lite npm |
|
|
| @highcharts/grid-pro npm |
|
|
highcharts · @highcharts grid-lite · @highcharts grid-pro
| Product | Affected | Fixed in |
|---|---|---|
| @highcharts/grid-lite npm |
|
|
| @highcharts/grid-pro npm |
|
|
Highcharts JS is a JavaScript charting library based on SVG. From 2.3.0 until 3.2.0, Highcharts Grid creates SVG path elements from rendering.icons object definitions and previously copied every child key with setAttribute. An attacker who controls Grid configuration can supply event-handler attribute names in an icon definition. Because custom icons override built-ins, the attacker can replace default sort or pagination icons, and script runs in the hosting page origin when a user hovers over or activates the affected icon. This issue is fixed in 3.2.0.
From the CVE record · GitHub_M
Highcharts Grid copies attributes from icon definitions into SVG path elements. An attacker who controls Grid configuration can add event-handler attributes to a custom icon, causing script to run in the hosting page’s origin when a user hovers over or activates the icon.
Teams using npm @highcharts/grid-lite or @highcharts/grid-pro versions 2.3.0 through versions before 3.2.0 should check their installations.