Skip to content
High 7.2

Highchartsに印刷時のクロスサイトスクリプティング脆弱性、12.6.1と13.1.0で修正

CVE-2026-118244 First seen on SecPulse

Summary

Highchartsの一部の版では、印刷の開始時に信頼されていないHTMLが挿入され、そこに含まれるイベントハンドラーがページの持ち主の権限で実行されるおそれがあります。影響を受けるのは12.0.0から12.6.1未満と13.1.0の版で、同じパッケージのStock・Maps・Ganttも対象です。修正版は12.6.1と13.1.0で、利用中の版をこれらに更新してください。

AI summary

Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.

Highchartsの一部の版では、印刷の開始時に信頼されていないHTMLが挿入され、そこに含まれるイベントハンドラーがページの持ち主の権限で実行されるおそれがあります。影響を受けるのは12.0.0から12.6.1未満と13.1.0の版で、同じパッケージのStock・Maps・Ganttも対象です。修正版は12.6.1と13.1.0で、利用中の版をこれらに更新してください。

Affected packages

EcosystemPackageAffectedFixed
highcharts highcharts — —
npm highcharts
≥ 13.0.0, < 13.1.0
13.1.0
Original description The description as published by the source.

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, 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.

Workarounds

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

((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=…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details