{"id":"CVE-2026-118252","aliases":["EUVD-2026-112367","GHSA-rcqf-f6h2-ccg9"],"status":"published","title":"Highcharts Dashboards: sidebar component labels are parsed as HTML","description":"Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.3, Highcharts Dashboards edit-mode sidebar parses component language strings as HTML rather than inserting them as text. An attacker who controls the Dashboards language configuration can provide markup containing event handlers, which execute in the hosting page origin when a user opens the edit-mode sidebar and the affected labels render. This issue is fixed in 4.2.3.","severity":{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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.00419,"percentile":0.36692,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-10-28T18:08:33Z","modified":"2026-11-01T02:30:44Z","fixes":[{"ecosystem":"npm","package":"@highcharts/dashboards","fixed_in":["4.2.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@highcharts/dashboards","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"last_affected":"4.2.2"},{"fixed":"4.2.3"}]}]},{"source":"osv","ecosystem":"npm","package":"@highcharts/dashboards","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"4.2.3"}]}]}],"products":[{"vendor":"@highcharts","product":"dashboards"},{"vendor":"highcharts","product":"highcharts"}],"references":[{"url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-rcqf-f6h2-ccg9","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/highcharts/highcharts/commit/e65f8c21b9974dcccfa1c600a375d836acef4a7d","tags":["x_refsource_MISC","fix","web"]},{"url":"https://github.com/highcharts/highcharts/releases/tag/dashboards-v4.2.3","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/advisories/GHSA-rcqf-f6h2-ccg9"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/118xxx/CVE-2026-118252.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118252","tags":["advisory"]},{"url":"https://github.com/highcharts/highcharts","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-118252","title":"Highcharts Dashboards: sidebar component labels are parsed as HTML","description":"Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.3, Highcharts Dashboards edit-mode sidebar parses component language strings as HTML rather than inserting them as text. An attacker who controls the Dashboards language configuration can provide markup containing event handlers, which execute in the hosting page origin when a user opens the edit-mode sidebar and the affected labels render. This issue is fixed in 4.2.3.","status":"published","published":"2026-10-28T18:08:33.407Z","modified":"2026-10-30T18:20:14.175Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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:03.827373Z"}],"euvd":[{"id":"EUVD-2026-112367","description":"Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.3, Highcharts Dashboards edit-mode sidebar parses component language strings as HTML rather than inserting them as text. An attacker who controls the Dashboards language configuration can provide markup containing event handlers, which execute in the hosting page origin when a user opens the edit-mode sidebar and the affected labels render. This issue is fixed in 4.2.3.","status":"published","published":"2026-10-28T18:08:33Z","modified":"2026-10-30T18:20:14Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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-rcqf-f6h2-ccg9","title":"Highcharts Dashboards parses sidebar component labels as HTML","description":"### Impact\nThe 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.\n\n### Workarounds\n\nUntil 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.\n\nAfter importing the module, use this code snipped once, before any board is created.\n\n```js\n{\n    const EditMode = window.Dashboards?.EditMode;\n    const escapeHTML = (text) =\u003e text\n        .replace(/\u0026/g, '\u0026amp;')\n        .replace(/\u003c/g, '\u0026lt;')\n        .replace(/\u003e/g, '\u0026gt;');\n    const patched = new WeakSet();\n    const originalInit = EditMode.prototype.init;\n\n    EditMode.prototype.init = function (...args) {\n        const labels = this.lang?.sidebar;\n\n        if (labels \u0026\u0026 !patched.has(this)) {\n            patched.add(this);\n\n            for (const key of Object.keys(labels)) {\n                if (typeof labels[key] === 'string') {\n                    labels[key] = escapeHTML(labels[key]);\n                }\n            }\n        }\n\n        return originalInit.apply(this, args);\n    };\n}\n```\n\nIf your application does not need Edit Mode, leaving it disabled (`editMode.enabled: false`) removes the exposure as well.\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/dashboards@4.2.3`. If you load Highcharts Dashboards from a CDN, use a versioned URL, for example `https://code.highcharts.com/dashboards/4.2.3/dashboards.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/dashboards/installation).","status":"published","published":"2026-10-28T19:56:57Z","modified":"2026-10-28T19:56:57Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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-118252","description":"Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.3, Highcharts Dashboards edit-mode sidebar parses component language strings as HTML rather than inserting them as text. An attacker who controls the Dashboards language configuration can provide markup containing event handlers, which execute in the hosting page origin when a user opens the edit-mode sidebar and the affected labels render. This issue is fixed in 4.2.3.","status":"published","published":"2026-10-28T19:17:29.483Z","modified":"2026-10-30T19:18:18.45Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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-118252","title":"Highcharts Dashboards: sidebar component labels are parsed as HTML","description":"Highcharts JS is a JavaScript charting library based on SVG. From 1.0.0 until 4.2.3, Highcharts Dashboards edit-mode sidebar parses component language strings as HTML rather than inserting them as text. An attacker who controls the Dashboards language configuration can provide markup containing event handlers, which execute in the hosting page origin when a user opens the edit-mode sidebar and the affected labels render. This issue is fixed in 4.2.3.","status":"published","published":"2026-10-28T18:08:33.407Z","modified":"2026-11-01T02:30:44.923047192Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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-rcqf-f6h2-ccg9","title":"Highcharts Dashboards parses sidebar component labels as HTML","description":"### Impact\nThe 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.\n\n### Workarounds\n\nUntil 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.\n\nAfter importing the module, use this code snipped once, before any board is created.\n\n```js\n{\n    const EditMode = window.Dashboards?.EditMode;\n    const escapeHTML = (text) =\u003e text\n        .replace(/\u0026/g, '\u0026amp;')\n        .replace(/\u003c/g, '\u0026lt;')\n        .replace(/\u003e/g, '\u0026gt;');\n    const patched = new WeakSet();\n    const originalInit = EditMode.prototype.init;\n\n    EditMode.prototype.init = function (...args) {\n        const labels = this.lang?.sidebar;\n\n        if (labels \u0026\u0026 !patched.has(this)) {\n            patched.add(this);\n\n            for (const key of Object.keys(labels)) {\n                if (typeof labels[key] === 'string') {\n                    labels[key] = escapeHTML(labels[key]);\n                }\n            }\n        }\n\n        return originalInit.apply(this, args);\n    };\n}\n```\n\nIf your application does not need Edit Mode, leaving it disabled (`editMode.enabled: false`) removes the exposure as well.\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/dashboards@4.2.3`. If you load Highcharts Dashboards from a CDN, use a versioned URL, for example `https://code.highcharts.com/dashboards/4.2.3/dashboards.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/dashboards/installation).","status":"published","published":"2026-10-28T19:56:57Z","modified":"2026-10-28T20:15:05.444971426Z","cvss":[{"version":"4.0","score":8.4,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/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:55.877614Z"}]}}
