CVE-2026-118244: Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print
Highcharts JS is a JavaScript charting library based on SVG. From 12.0.0 until 12.6.1 and 13.1.0, Highcharts falls back to assigning raw markup to innerHTML when DOMParser cannot return a document, before its allow-list is applied. In Chromium, the Trusted Types callback can throw while a beforeprint handler runs, so a page that redraws a chart during beforeprint can insert untrusted HTML text options into the hosting document. Event handlers in that markup then run in the page origin when printing begins. The issue affects HTML-rendered titles, labels, data labels, responsive text, and the Stock, Maps, and Gantt products shipped in the same package. This issue is fixed in 12.6.1 and 13.1.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Highcharts JSto a version that resolves this vulnerability.Fixed in 12.6.1 - Upgrade
Upgrade
Highcharts JSto a version that resolves this vulnerability.Fixed in 13.1.0
Event History
Frequently Asked Questions
Who is realistically exposed to exploitation?
Applications using affected Highcharts versions that render attacker-controlled or otherwise untrusted text through HTML-rendered titles, labels, data labels, or responsive text are exposed. The same package issue also affects Highcharts Stock, Maps, and Gantt.
What conditions are needed for an attacker to trigger the issue?
The application must redraw a chart from a beforeprint handler, and Chromium must take the DOMParser fallback path because its Trusted Types callback throws. Untrusted HTML text options must be present; event handlers in that markup execute in the page origin when printing begins.
Are fixed versions available?
Yes. The issue is fixed in Highcharts 12.6.1 and 13.1.0.