CVE-2026-118245: Highcharts Dashboards: `chartConstructor` is an unchecked lookup into the Highcharts namespace
Impact The Highcharts component uses the value of chartConstructor to select a function from the Highcharts namespace and invokes it with the component's container element and its chartOptions, without checking the value against the supported chart constructors. An attacker who controls the dashboard configuration can therefore name any other public member of that namespace;
Published Oct 28, 2026
Affected packages
@highcharts/dashboards
- Ecosystem
- npm
- Affected
- >= 1.0.0, <= 4.2.1
- Fixed in
- 4.2.2
- Check
npm ls @highcharts/dashboards
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Impact
The Highcharts component uses the value of chartConstructor to select a function from the Highcharts namespace and invokes it with the component's container element and its chartOptions, without checking the value against the supported chart constructors. An attacker who controls the dashboard configuration can therefore name any other public member of that namespace; utility functions in that namespace copy the supplied options onto the container element as properties or attributes, so markup and event handlers carried in chartOptions land in the page and run in the origin of the page hosting the dashboard. Exploitation requires that untrusted data reach the Dashboards component configuration. No user interaction is required beyond rendering the board.
Workarounds
If your board configuration comes from a source you do not fully control, paste this snippet right after importing libraries:
(function () {
const HighchartsComponent =
Dashboards && Dashboards.HighchartsComponent;
if (!HighchartsComponent || !HighchartsComponent.prototype.createChart) {
return; // HighchartsComponent not loaded
}
const allowedConstructors = [
'chart',
'stockChart',
'mapChart',
'ganttChart'
];
const originalCreateChart = HighchartsComponent.prototype.createChart;
HighchartsComponent.prototype.createChart = function () {
if (allowedConstructors.indexOf(this.chartConstructor) === -1) {
this.chartConstructor = 'chart';
}
return originalCreateChart.apply(this, arguments);
};
}());Obtaining the patched version
The patched releases are available from all the usual distribution channels. With npm, upgrade the affected package to the patched version listed above, for example npm install @highcharts/[email protected]. If you load Highcharts Dashboards from a CDN, use a versioned URL, for example https://code.highcharts.com/dashboards/4.2.2/dashboards.js. For more on each installation method, see the installation guide.
References
- https://github.com/highcharts/highcharts/security/advisories/GHSA-grj7-r4jv-pw9j
- https://nvd.nist.gov/vuln/detail/CVE-2026-118245
- https://github.com/highcharts/highcharts/commit/98d3652cdc4f66fbccbbb8b4184ecd8f647f74de
- https://github.com/highcharts/highcharts/releases/tag/dashboards-v4.2.2
- https://github.com/advisories/GHSA-grj7-r4jv-pw9j
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More npm vulnerabilities
All npm entriesCVE-2026-116797
Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`
high8.5Oct 28, 2026CVE-2026-118243
Highcharts Dashboards: `__proto__` data table id writes sync listeners to `Object.prototype`
medium5.3Oct 28, 2026CVE-2026-118247
Highcharts Dashboards / Grid Pro: `DataTable.setCell` and column writers treat `__proto__` as an existing column.
medium6.9Oct 28, 2026CVE-2026-118252
Highcharts Dashboards parses sidebar component labels as HTML
high8.4Oct 28, 2026CVE-2026-118253
Highcharts Dashboards parses fullscreen labels as HTML
high8.4Oct 28, 2026CVE-2026-118255
Highcharts Grid: `javascript:` URL in credits.href runs script on click
high8.4Oct 28, 2026
