All vulnerabilities

npm

CVE-2026-118245

Highcharts Dashboards: `chartConstructor` is an unchecked lookup into the Highcharts namespace

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

Description

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.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

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

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

Affected software

SoftwareAffected versions
@highcharts/dashboardsnpm · osv:npm:@highcharts/dashboards
  • From 1.0.0 before 4.2.2

About @highcharts/dashboards

Weekly downloads (npm)
9,155npm, 23 Nov 2026

References