Skip to content
High 8.4

Highcharts Dashboardsに任意のスクリプトを実行される脆弱性

CVE-2026-118252 First seen on SecPulse

Summary

Highcharts Dashboardsの編集モードのサイドバーで、コンポーネントの言語設定が文字ではなくHTMLとして解釈される脆弱性が見つかりました。言語設定を操作できる攻撃者が仕込んだイベントハンドラーが、利用者がサイドバーを開いた時点で実行される可能性があります。影響を受けるのは1.0.0から4.2.2までで、修正版の4.2.3で解消されます。CVSSv4の基本値は8.4です。

AI summary

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

Highcharts Dashboardsの編集モードのサイドバーで、コンポーネントの言語設定が文字ではなくHTMLとして解釈される脆弱性が見つかりました。言語設定を操作できる攻撃者が仕込んだイベントハンドラーが、利用者がサイドバーを開いた時点で実行される可能性があります。影響を受けるのは1.0.0から4.2.2までで、修正版の4.2.3で解消されます。CVSSv4の基本値は8.4です。

Affected packages

EcosystemPackageAffectedFixed
highcharts highcharts — —
@highcharts dashboards — —
npm @highcharts/dashboards
≥ 1.0.0, < 4.2.3
4.2.3
Original description The description as published by the source.

Impact

The component language strings shown in the edit mode sidebar are parsed as HTML rather than inserted as text. An attacker who controls those language options can supply markup carrying event handlers, which execute in the origin of the page hosting the dashboard once the sidebar renders the affected labels. Exploitation requires that untrusted data reach the Dashboards language configuration and that a user open the edit mode sidebar.

Workarounds

Until you can upgrade, patch EditMode once at application startup. The hook runs before the sidebar is built, so the labels are already harmless by the time they are rendered. Assigning a string to textContent and reading back innerHTML turns any markup into literal text, which is exactly what the fixed version renders.

After importing the module, use this code snipped once, before any board is created.

{
    const EditMode = window.Dashboards?.EditMode;
    const escapeHTML = (text) => text
        .replace(/&/g, '&amp;')
        .replace(//g, '&gt;');
    const patched = new WeakSet();
    const originalInit = EditMode.prototype.init;

    EditMode.prototype.init = function (...args) {
        const labels = this.lang?.sidebar;

        if (labels && !patched.has(this)) {
            patched.add(this);

            for (const key of Object.keys(labels)) {
                if (typeof labels[key] === 'string') {
                    labels[key] = escapeHTML(labels[key]);
                }
            }…

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