本文へ移動
English version →
高 8.4

Highchartsに クリック時にスクリプトが実行される脆弱性

CVE-2026-118251 SecPulse初出

概要

Highchartsの11.4.9より前、12.6.1より前、13.1.0より前では、クレジット表示をクリックした際にjavascript形式のURLが実行される脆弱性があります。悪用されると、グラフを表示しているページの権限でスクリプトが動くおそれがあります。Highcharts Stock、Maps、Ganttも同じパッケージのため影響を受けるため、11.4.9、12.6.1、13.1.0以降の修正版に更新してください。

AI要約

外部の AI が作成した要約です。誤りを含むことがあります。重要な判断の前に、下の原文と参照URLを確認してください。

Highchartsの11.4.9より前、12.6.1より前、13.1.0より前では、クレジット表示をクリックした際にjavascript形式のURLが実行される脆弱性があります。悪用されると、グラフを表示しているページの権限でスクリプトが動くおそれがあります。Highcharts Stock、Maps、Ganttも同じパッケージのため影響を受けるため、11.4.9、12.6.1、13.1.0以降の修正版に更新してください。

影響パッケージ

種類パッケージ影響を受ける版直った版
highcharts highcharts — —
npm highcharts
13.0.0 以上 13.1.0 未満
13.1.0
原文の説明 取得元が公開している説明をそのまま載せています (多くは英語)。

Impact

A credits.href value beginning with javascript: is assigned to the window location when the credits label is clicked, without being checked against an allowed-scheme list. An attacker who controls the chart configuration can therefore run script in the origin of the page hosting the chart. Exploitation requires that untrusted data reach the chart configuration and that a user click the credits label. 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 (5.0.0-13.0.2).
Add the below IIFE to run after Highcharts is loaded, but before a chart is created.

!function(t){if(t&&t.Chart&&!t.Chart.prototype.creditsHrefPatched){var r=t.Chart.prototype,e=r.addCredits;r.addCredits=function(n){var o=t.merge(!0,this.options.credits,n);return o&&o.href&&!c(o.href)&&delete o.href,e.call(this,o)},r.creditsHrefPatched=!0}function c(r){var e=t.AST&&t.AST.allowedReferences||["https://","http://","mailto:","/","../","./","#"];return"string"==typeof r&&e.some(function(t){return 0===r.indexOf(t)})}}(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…

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

参照URL

当サイトでは、アクセス解析と広告の効果測定のために Cookie を使います。株式会社Game のサイト共通の設定です。 詳しく