Skip to main content

CVE-2026-118245 — Vulnerability in @highcharts/dashboards

HIGH

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

Published October 28, 2026Updated October 28, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.47%). Schedule for your next planned update.

Does your project use an affected @highcharts/dashboards version?

Paste your package-lock.json to check it for CVE-2026-118245 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

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/dashboards@4.2.2. 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.

Advisory Timeline

  • First published October 28, 2026 (29 days ago).
  • Last revised October 28, 2026 — 0 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update @highcharts/dashboards to 4.2.2 or later
npm install @highcharts/dashboards@4.2.2

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: npm (1).

PackageFixed In
@highcharts/dashboards npm · Affected: All versions4.2.2

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-79
    Cross-site Scripting (XSS)MITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N

Frequently Asked Questions

What is CVE-2026-118245?
Highcharts Dashboards: `chartConstructor` is an unchecked lookup into the Highcharts namespace. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.6/10).
How do I check if my project is affected by CVE-2026-118245?
CVE-2026-118245 affects @highcharts/dashboards. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-118245 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.6

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
0.47%
EPSS percentile: 32.6

This is a below-median EPSS score — only 32.6% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-grj7-r4jv-pw9j

Related CVEs

  • CVE-2026-83816
    HIGH

    CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE

  • CVE-2026-116797
    HIGH

    Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`

  • CVE-2026-118242
    HIGH

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

  • CVE-2026-83817
    HIGH

    CodeWhale: Automation auto_approve defaults to true, bypassing the task-path hardening fix for silent recurring agent execution

  • CVE-2026-118254
    HIGH

    Highcharts Grid parses pagination language options as HTML

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json