{"schema":"threatline.record/2","record":{"id":"CVE-2026-118253","aliases":["GHSA-58g7-7f52-h92c"],"summary":"Highcharts Dashboards parses fullscreen labels as HTML","details":"### Impact\nThe edit mode fullscreen labels are parsed as HTML when the corresponding control is rendered. An attacker who controls the Dashboards language options can supply markup carrying event handlers, which then execute in the origin of the page hosting the dashboard. Exploitation requires that untrusted data reach the Dashboards language configuration and that the affected control be rendered. Script running this way has the same access to page data, storage and session state as the hosting application.\n\n### Workarounds\n\nUntil you can upgrade, replace `Fullscreen.prototype.setButtonText` atapplication startup. The replacement is the original method with `textContent` in place of `innerHTML`.\n\n#### If you install Dashboards from npm\n\nImport the module once, before any board is created.\n\n```js\nimport Fullscreen from '@highcharts/dashboards/es-modules/Dashboards/EditMode/Fullscreen.js';\n\nFullscreen.prototype.setButtonText = function () {\n    const editMode = this.board.editMode,\n        button = editMode?.tools.contextMenu?.items.viewFullscreen;\n\n    if (button?.innerElement) {\n        const lang = editMode.lang;\n\n        button.innerElement.textContent =\n            (this.isOpen ? lang.exitFullscreen : lang.viewFullscreen) || '';\n    }\n};\n```\n\n#### If you load Dashboards from a `<script>` tag\n\nThe same replacement, taking `Fullscreen` from the global namespace. It must run after `modules/layout` and before any board is created.\n\n```html\n<script src=\"https://code.highcharts.com/dashboards/dashboards.js\"></script>\n<script src=\"https://code.highcharts.com/dashboards/modules/layout.js\"></script>\n<script>\n{\n    const Fullscreen = window.Dashboards?.Fullscreen;\n\n    Fullscreen.prototype.setButtonText = function () {\n        const editMode = this.board.editMode,\n            button = editMode?.tools.contextMenu?.items.viewFullscreen;\n\n        if (button?.innerElement) {\n            const lang = editMode.lang;\n\n            button.innerElement.textContent =\n                (this.isOpen ? lang.exitFullscreen : lang.viewFullscreen) || '';\n        }\n    };\n}\n</script>\n```\n\nIf your application does not need Edit Mode, leaving it disabled (`editMode.enabled: false`) removes the exposure as well. The same applies to the context menu — the label is only reachable when `viewFullscreen` is among `editMode.contextMenu.items`.\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).","categories":["Libraries & packages"],"product":"@highcharts/dashboards","vendor":"highcharts","ecosystem":"npm","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-58g7-7f52-h92c","source_modified_at":"2026-10-28T19:57:21Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"@highcharts/dashboards"},"range":">= 1.0.0, < 4.2.3"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-118253","source_modified_at":"2026-10-28T18:11:03.809Z","fetched_at":"2026-10-28T20:58:01.013507Z","product":"highcharts","vendor":"highcharts","versions":[{"version":"< 13.0.0-beta.2","status":"affected"}],"defaultStatus":null},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-118253","source_modified_at":"2026-10-28T18:11:03.809Z","fetched_at":"2026-10-28T20:58:01.013507Z","product":"dashboards","vendor":"@highcharts","versions":[{"version":">= 1.0.0, < 4.2.3","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-58g7-7f52-h92c","source_modified_at":"2026-10-28T20:15:05.453168243Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"@highcharts/dashboards","ecosystem":"npm","purl":"pkg:npm/%40highcharts/dashboards"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"4.2.3"}]}],"versions":[]}],"fixed_versions":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-58g7-7f52-h92c","source_modified_at":"2026-10-28T19:57:21Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"ecosystem":"npm","name":"@highcharts/dashboards"},"version":"4.2.3"},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-58g7-7f52-h92c","source_modified_at":"2026-10-28T20:15:05.453168243Z","fetched_at":"2026-10-28T20:58:01.013507Z","package":{"name":"@highcharts/dashboards","ecosystem":"npm","purl":"pkg:npm/%40highcharts/dashboards"},"version":"4.2.3"}],"cvss":8.4,"severity":"High","kev":{"listed":false},"epss":{"probability":null,"percentile":null,"score_date":null},"published_at":"2026-10-28T18:11:03.809Z","modified_at":"2026-10-28T20:15:05.453168243Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-58g7-7f52-h92c","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T19:57:21Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-118253","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T18:11:03.809Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-58g7-7f52-h92c","fetched_at":"2026-10-28T20:58:01.013507Z","source_modified_at":"2026-10-28T20:15:05.453168243Z"}],"sources":["GitHub Advisory Database","CVE List","OSV"],"references":[{"source":"CVE List","url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-58g7-7f52-h92c","tags":["x_refsource_CONFIRM"]},{"source":"CVE List","url":"https://github.com/highcharts/highcharts/commit/f97213bab745e40f628720c21f4e8b31ee3e768b","tags":["x_refsource_MISC"]},{"source":"CVE List","url":"https://github.com/highcharts/highcharts/releases/tag/dashboards-v4.2.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-58g7-7f52-h92c","source":"GitHub Advisory Database"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-28T20:15:05.453168243Z","content_hash":"337a46d1d05a2028ece80f23ea9df18b5c441c05b2408fbc03f279324ad55b2a"}}
