Skip to content
High 8.4

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

CVE-2026-118251 First seen on SecPulse

Summary

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 summary

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

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以降の修正版に更新してください。

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

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…

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