CVE-2026-118251: Highcharts JavaScript library cross-site scripting in credits link

CVE-2026-118251 · Severity: high · CVSS 4 · Published 2026-10-28

Highcharts is a JavaScript charting library used to display data visualizations on web pages. Prior to the patched versions, attackers could inject malicious JavaScript code through the chart credits link that would execute when users click on the credits label. This allows an attacker to steal data, compromise user sessions, or perform actions on behalf of the user within the hosting page.

Technologies: highcharts (npm). Vendors: Highcharts, npm.

Quick answers

Is CVE-2026-118251 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-118251 being exploited in the wild.
How severe is CVE-2026-118251?
High severity, with a CVSS score of 4, published 28 October 2026.
Which products and versions are affected?
Highcharts before 11.4.9; Highcharts Gantt before 13.1.0; Highcharts Maps before 13.1.0; Highcharts Stock before 12.6.1; and 1 more.
Is there a fix for CVE-2026-118251?
Yes. highcharts (npm): upgrade to 11.4.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-118251 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-118251?
Check whether you run Highcharts, Highcharts Gantt, Highcharts Maps or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • highcharts (npm): upgrade to 11.4.9 or later
    npm install highcharts@11.4.9

Technical details

The vulnerability is a cross-site scripting (XSS) flaw in how Highcharts handles the credits.href configuration option. When the credits label is clicked, the library assigns the href value to window.location.href without validating it against an allowed-scheme list. An attacker who controls chart configuration can supply a javascript: URL that executes arbitrary code in the origin of the hosting page when a user clicks the credits label.

Affected products

  • Highcharts Highcharts before 11.4.9
  • Highcharts Highcharts Stock before 12.6.1
  • Highcharts Highcharts Maps before 13.1.0
  • Highcharts Highcharts Gantt before 13.1.0

Identifiers

  • CVE-2026-118251
  • GHSA-5793-x2q3-c3q7

Timeline

  • 2026-10-28: disclosed

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.