npm
CVE-2026-116796
Highcharts Core: `javascript:` URL in an `xlink:href` attribute survives text filtering and reaches exported charts
- Severity
- High
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 11.4.9, 12.6.2, 13.1.1
- Exploit chance
- 0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Cross-site scripting (CWE-79)
- Also known as
- GHSA-mw4f-gj5x-6xr4
- Sources
- OSV.dev and GitHub
Description
The filter applied to markup in text options checks href, src and a few similar attributes against an allowed-scheme list, but accepts xlink:href without that check, so an SVG anchor whose xlink:href is a javascript: URL passes the filter, whether or not the option is rendered with useHTML. In the live page the attribute is written without the XLink namespace, so browsers do not treat the anchor as a link there.
The attribute is preserved verbatim in the chart's serialised output: the SVG produced by the exporting module, including the default SVG download, declares the XLink namespace and contains the anchor, and so does the markup of the chart container. Any document that parses that output again, such as the downloaded SVG opened in a browser or a page that inlines exported or server-rendered chart markup, then holds a working link, and an attacker who controls the chart configuration can thereby run script in the origin of that document when a user activates the link.
Workarounds
Drop-in fix for all affected versions (10.3.2 - 13.1.0).
Add the below IIFE to run after Highcharts is loaded, before creating a chart.
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-118251Highcharts: `javascript:` URL in credits.href runs script on clickHigh 28 Oct 2026
- 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
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-116796
- GitHub Advisory Database https://github.com/advisories/GHSA-mw4f-gj5x-6xr4