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.
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
Affected software
| Software | Affected versions |
|---|---|
highchartsnpm · osv:npm:highcharts |
|
About highcharts
- Weekly downloads (npm)
- 3,790,953npm, 23 Nov 2026
Vulnerabilities in highcharts
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-118250Highcharts: dotted series.keys paths write to Object.prototypeHigh 28 Oct 2026
- CVE-2026-118249Highcharts: series column construction writes to Object.prototypeHigh 28 Oct 2026
- CVE-2026-118246Highcharts Core: `breadcrumbs.style` keys become SVG event-handler attributesHigh 28 Oct 2026
- CVE-2026-118244Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printingHigh 28 Oct 2026
- CVE-2026-116796Highcharts Core: `javascript:` URL in an `xlink:href` attribute survives text filtering and reaches exported chartsHigh 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-118251
- GitHub Advisory Database https://github.com/advisories/GHSA-5793-x2q3-c3q7