High

Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printing

  • Disclosed: 28.10.2026
  • Updated: 04.11.2026 10:00

Impact

When the HTML text parser cannot obtain a document from DOMParser because the call throws, it falls back to assigning the raw markup to the innerHTML of an element created in the hosting document, and the allow-list is applied only to the resulting DOM afterwards.

In Chromium, the Trusted Types policy callback that the parser uses throws while a beforeprint handler is running. If the hosting page re-renders the chart from a beforeprint handler, every HTML-rendered text option parsed at that moment—such as useHTML titles, axis labels, and data labels or text set by responsive rules—is inserted unsanitized. Event handlers embedded in that markup run in the origin of the page hosting the chart.

Exploitation requires that:

  • Untrusted data reach the chart configuration,
  • The hosting page update the chart from a beforeprint handler in Chromium, and
  • Printing be started, which the print item of the exporting menu does on its own.

Charts built with Highcharts Stock, Maps, and Gantt are included, as they ship from the same package as Core.

Workarounds

Drop-in fix - for any versions affected (12.0.0-13.0.2): Add the below IIFE to run after Highcharts is loaded:

js
((n)=>{n.AST.prototype.parseMarkup=function parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(tI?tI.createHTML(t):t,"text/html")}catch{}if(!e)try{e=new DOMParser().parseFromString(t,"text/html")}catch{}e||((e=n.doc.implementation.createHTMLDocument("")).body.innerHTML=t);let s=(t,e)=>{let i=t.localName||t.nodeName.toLowerCase(),o={tagName:i};"#text"===i&&(o.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=>{"data-style"===e.name?o.style=tB.parseStyle(e.value):t[e.name]=e.value}),o.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,t=>{s(t,e)}),e.length&&(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=>s(t,i)),i};})(Highcharts);

Live demo & testing)

Obtaining the patched version

The patched releases are available from all the usual distribution channels. With npm, upgrade the affected package to the patched version listed above, for example npm install highcharts@13.1.0. If you load Highcharts from the CDN, use the versioned URLs on code.highcharts.com, for example https://code.highcharts.com/13.1.0/highcharts.js.. For more on each installation method, see the installation guide.).

What to do

Upgrade highcharts to version 12.6.1, 13.1.0, or later. If upgrading is not immediately possible, apply the vendor-provided IIFE workaround script.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
npm package highcharts >= 12.0.0, < 12.6.1, >= 13.0.0, < 13.1.0 12.6.1, 13.1.0

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N
Weakness (CWE)
CWE-79
Platform
npm
Package
highcharts
Disclosed
28.10.2026
Updated
04.11.2026 10:00

Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.

OSV / GitHub Advisory Database - GHSA-65hg-cf3f-5m39 - CC BY 4.0

Vulnerability history: highcharts

All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.

Total entries
7
First → latest
03.2019 10.2026
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 7

Disclosures per year

  1. 2019: 1
  2. 2020: 1
  3. 2021: 1
  4. 2022: 0
  5. 2023: 0
  6. 2024: 0
  7. 2025: 0
  8. 2026: 4
  1. High CVE-2026-118251 < 11.4.9, >= 12.0.0, < 12.6.1, >= 13.0.0, < 13.1.0 11.4.9, 12.6.1, 13.1.0
  2. High CVE-2026-118246 >= 10.0.0, < 11.4.9, >= 12.0.0, < 12.6.1, >= 13.0.0, < 13.1.0 11.4.9, 12.6.1, 13.1.0
  3. Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printing this entry
    High CVE-2026-118244 >= 12.0.0, < 12.6.1, >= 13.0.0, < 13.1.0 12.6.1, 13.1.0
  4. High CVE-2026-116796 >= 10.3.2, < 11.4.9, >= 12.0.0, < 12.6.2, >= 13.0.0, < 13.1.1 11.4.9, 12.6.2, 13.1.1
  5. High · 8.7 ghsa-gr4j-r575-g665 < 7.2.2, >= 8.0.0, < 8.1.1 7.2.2, 8.1.1
  6. High · 7.5 CVE-2018-20801 < 6.1.0 6.1.0

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.