All vulnerabilities

npm

CVE-2026-118251

Highcharts: `javascript:` URL in credits.href runs script on click

Severity
High
Published
28 Oct 2026
Last changed
28 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
11.4.9, 12.6.1, 13.1.0
Exploit chance
0.4% in the next 30 daysHigher than 38% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Cross-site scripting (CWE-79)
Also known as
GHSA-5793-x2q3-c3q7
Sources
OSV.dev and GitHub

Description

A credits.href value beginning with javascript: is assigned to the window location when the credits label is clicked, without being checked against an allowed-scheme list. An attacker who controls the chart configuration can therefore run script in the origin of the page hosting the chart. Exploitation requires that untrusted data reach the chart configuration and that a user click the credits label. Charts built with Highcharts Stock, Maps and Gantt are included, since those ship from the same package as Core.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Drop-in fix - for any versions affected (5.0.0-13.0.2). Add the below IIFE to run after Highcharts is loaded, but before a chart is created.

Live demo & testing

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

Affected software

SoftwareAffected versions
highchartsnpm · osv:npm:highcharts
  • Every version before 11.4.9
  • From 12.0.0 before 12.6.1
  • From 13.0.0 before 13.1.0

About highcharts

Weekly downloads (npm)
3,790,953npm, 23 Nov 2026

References