{"id":"CVE-2026-118244","aliases":["CLSA-2026-1793349717","EUVD-2026-112307","GHSA-65hg-cf3f-5m39"],"status":"published","title":"Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print","description":"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.","severity":{"version":"4.0","score":7.2,"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","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00337,"percentile":0.27486,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-10-28T17:36:43Z","modified":"2026-11-01T02:31:07Z","fixes":[{"ecosystem":"npm","package":"highcharts","fixed_in":["12.6.1","13.1.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"highcharts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.0.0"},{"fixed":"12.6.1"}]}]},{"source":"ghsa","ecosystem":"npm","package":"highcharts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"13.0.0"},{"last_affected":"13.0.2"},{"fixed":"13.1.0"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"highcharts","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"12.5.0-tuxcare.0"},{"fixed":"12.5.0-tuxcare.1"}]}],"versions":["12.5.0"],"bundled":5},{"source":"osv","ecosystem":"npm","package":"highcharts","ranges":[{"type":"SEMVER","events":[{"introduced":"12.0.0"},{"fixed":"12.6.1"}]}]},{"source":"osv","ecosystem":"npm","package":"highcharts","ranges":[{"type":"SEMVER","events":[{"introduced":"13.0.0"},{"fixed":"13.1.0"}]}]}],"products":[{"vendor":"highcharts","product":"highcharts"}],"references":[{"url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-65hg-cf3f-5m39","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/highcharts/highcharts/commit/abde7c576793bf50b0e0636e59b49630de6dd0d5","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/highcharts/highcharts/releases/tag/v13.1.0","tags":["x_refsource_MISC","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118244","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-65hg-cf3f-5m39"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118244.json","tags":["advisory"]},{"url":"https://github.com/highcharts/highcharts","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-118244","title":"Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print","description":"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.","status":"published","published":"2026-10-28T17:36:43.768Z","modified":"2026-10-30T18:19:13.077Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high","assessor":"cna"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:20:04.156238Z"}],"euvd":[{"id":"EUVD-2026-112307","description":"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.","status":"published","published":"2026-10-28T17:36:43Z","modified":"2026-10-30T18:19:13Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"updated_at":"2026-11-02T16:59:03.071815Z"}],"ghsa":[{"id":"GHSA-65hg-cf3f-5m39","title":"Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printing","description":"### Impact\nWhen 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, so 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, and 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, that the hosting page update the chart from a `beforeprint` handler in Chromium, and that 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, since those ship from the same package as Core.\n\n### Workarounds\n**Drop-in fix - for any versions affected (12.0.0-13.0.2).**\nAdd the below IIFE to run after Highcharts is loaded. \n```\n((n)=\u003e{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)=\u003e{let i=t.localName||t.nodeName.toLowerCase(),o={tagName:i};\"#text\"===i\u0026\u0026(o.textContent=t.textContent||\"\");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=\u003e{\"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=\u003e{s(t,e)}),e.length\u0026\u0026(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=\u003es(t,i)),i};})(Highcharts);\n```\n[Live demo \u0026 testing](https://jsfiddle.net/BlackLabel/pb6jLf7g/)\n\n### Obtaining the patched version\nThe 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](https://www.highcharts.com/docs/getting-started/installation).","status":"published","published":"2026-10-28T19:55:22Z","modified":"2026-10-28T19:55:25Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:41:39.926569Z"}],"nvd":[{"id":"CVE-2026-118244","description":"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.","status":"published","published":"2026-10-28T18:17:15.26Z","modified":"2026-10-30T19:18:18.143Z","cvss":[{"version":"4.0","score":7.2,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-79"],"updated_at":"2026-11-04T18:06:24.696141Z"}],"osv":[{"id":"CVE-2026-118244","title":"Highcharts Core: AST `DOMParser` fallback assigns unsanitized markup to `innerHTML` during print","description":"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.","status":"published","published":"2026-10-28T17:36:43.768Z","modified":"2026-11-01T02:31:07.245769975Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:44:57.008854Z"},{"id":"GHSA-65hg-cf3f-5m39","title":"Highcharts Core: HTML text parsing falls back to unfiltered `innerHTML` during printing","description":"### Impact\nWhen 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, so 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, and 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, that the hosting page update the chart from a `beforeprint` handler in Chromium, and that 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, since those ship from the same package as Core.\n\n### Workarounds\n**Drop-in fix - for any versions affected (12.0.0-13.0.2).**\nAdd the below IIFE to run after Highcharts is loaded. \n```\n((n)=\u003e{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)=\u003e{let i=t.localName||t.nodeName.toLowerCase(),o={tagName:i};\"#text\"===i\u0026\u0026(o.textContent=t.textContent||\"\");let r=t.attributes;if(r){let t={};[].forEach.call(r,e=\u003e{\"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=\u003e{s(t,e)}),e.length\u0026\u0026(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,t=\u003es(t,i)),i};})(Highcharts);\n```\n[Live demo \u0026 testing](https://jsfiddle.net/BlackLabel/pb6jLf7g/)\n\n### Obtaining the patched version\nThe 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](https://www.highcharts.com/docs/getting-started/installation).","status":"published","published":"2026-10-28T19:55:22Z","modified":"2026-10-28T20:15:06.095805082Z","cvss":[{"version":"4.0","score":7.2,"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","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:39.266402Z"},{"id":"CLSA-2026-1793349717","title":"TuxCare security update for highcharts (5 CVEs)","description":"TuxCare rebuilt highcharts to address 5 CVEs. Fixed in 12.5.0-tuxcare.1.","status":"published","published":"2026-10-30T09:41:58Z","modified":"2026-10-30T13:30:12.138818733Z","updated_at":"2026-11-02T15:43:55.669514Z"}]}}
