{"id":"CVE-2026-118252","kind":"vulnerability","aliases":["CVE-2026-118252","GHSA-rcqf-f6h2-ccg9"],"related":[],"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) => text\n        .replace(/&/g, '&amp;')\n        .replace(/</g, '&lt;')\n        .replace(/>/g, '&gt;');\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 && !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).","summary":"Highcharts Dashboards from 1.0.0 through 4.2.2 parses component language strings as HTML in the edit-mode sidebar instead of inserting them as text. An attacker who controls the Dashboards language configuration can embed event-handler markup that runs in the hosting page's origin when a user opens the sidebar.","severity":"high","cvss":8.4,"epss":null,"exploited":false,"exploited_at":null,"products":[{"name":"@highcharts/dashboards","fixed":["4.2.3"],"affected":">= 1.0.0, <= 4.2.2","ecosystem":"npm"}],"ecosystems":["npm"],"tags":["cwe-79","frontend","highcharts","javascript","package","self-hosted"],"not_affected_if":["edit-mode-disabled","static-charts-only","trusted-language-config"],"how_to_check":"- Check the installed Highcharts version with `npm ls highcharts` or the `version` field in `node_modules/highcharts/package.json`.\n- Check whether the Dashboards edit mode is enabled in the app and whether untrusted users can set Dashboards language configuration.","fix":"- Upgrade Highcharts to `4.2.3` or later.","status":"open","published_at":"2026-10-28T19:17:29+00:00","first_seen_at":"2026-10-28T19:34:54+00:00","triaged_at":"2026-10-28T19:35:51+00:00","updated_at":"2026-10-28T20:01:43+00:00","category":"package","confidence":0.7,"triage":{"at":"2026-10-28T19:35:51Z","model":"claude-haiku-5-5","output":{"fix":"- Upgrade Highcharts to `4.2.3` or later.","reach":"internet","title":"Highcharts Dashboards: edit-mode sidebar runs injected HTML in page origin","impact":"high","summary":"Highcharts Dashboards from 1.0.0 through 4.2.2 parses component language strings as HTML in the edit-mode sidebar instead of inserting them as text. An attacker who controls the Dashboards language configuration can embed event-handler markup that runs in the hosting page's origin when a user opens the sidebar.","category":"package","nicknames":[],"who_cares":["javascript","highcharts","self-hosted","frontend"],"confidence":0.7,"needs_auth":"unknown","worst_case":"Attacker script runs in the hosting page origin and reads session data","analyst_note":"Confirm from the NVD entry or the Highcharts advisory whether an attacker needs dashboard edit access or can only supply language config, and check the exact fix version line.","how_to_check":"- Check the installed Highcharts version with `npm ls highcharts` or the `version` field in `node_modules/highcharts/package.json`.\n- Check whether the Dashboards edit mode is enabled in the app and whether untrusted users can set Dashboards language configuration.","needs_analyst":true,"not_affected_if":["static-charts-only","edit-mode-disabled","trusted-language-config"],"who_is_affected":"Applications that use Highcharts Dashboards with edit mode available and that let untrusted users or external data set the Dashboards language configuration are exposed. Teams that only render static charts, or that never expose the edit-mode sidebar and fully control the language strings, can skip it.","user_interaction":"yes","needs_special_setup":"yes","severity_if_unknown":"high"},"cost_usd":0.000642,"input_tokens":3357,"output_tokens":612,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-118252':11A,19A '-2026':10A,18A '-79':22B '/dashboards/4.2.3/dashboards.js':342C '/docs/dashboards/installation).':355C '/g':230C,232C,234C '1.0.0':33B '4.2.2':35B '4.2.3':325C 'affect':131C,312C 'alreadi':175C 'applic':161C,277C 'arg':244C,274C 'assign':183C 'attack':55B,103C 'avail':301C 'back':190C 'board':217C 'built':170C 'carri':112C 'ccg9':16A 'cdn':333C 'channel':307C 'code':212C 'code.highcharts.com':341C 'code.highcharts.com/dashboards/4.2.3/dashboards.js':340C 'compon':5A,37B,84C 'configur':61B,142C 'const':221C,225C,235C,239C,245C,256C 'control':57B,105C 'creat':219C 'cve':9A,17A 'cwe':21B 'dashboard':2A,31B,59B,125C,140C,330C 'data':137C 'disabl':285C 'distribut':306C 'edit':45B,90C,149C,281C 'edit-mod':44B 'editmod':158C,222C,224C 'editmode.enabled':286C 'editmode.prototype.init':241C,242C 'emb':63B 'escapehtml':226C,268C 'event':65B,113C 'event-handl':64B 'exact':200C 'exampl':321C,339C 'execut':116C 'exploit':133C 'exposur':290C 'f6h2':15A 'fals':287C 'fix':203C 'frontend':23B 'function':243C 'ghsa':13A 'ghsa-rcqf-f6h2-ccg9':12A 'guid':352C 'handler':66B,114C 'harmless':176C 'highchart':1A,24B,30B,329C 'highcharts/dashboards':20A,324C 'hook':164C 'host':29B,72B,123C 'html':8A,41B,96C 'impact':82C 'import':207C 'innerhtml':191C 'insert':50B,99C 'instal':323C,347C,351C 'instead':48B 'javascript':25B 'js':220C 'key':257C,264C,267C,270C 'label':6A,132C,173C,246C,250C,260C,263C,266C,269C 'languag':38B,60B,85C,107C,141C 'leav':283C 'list':318C 'liter':196C 'load':328C 'markup':67B,111C,194C 'method':348C 'mode':46B,91C,150C,282C 'modul':209C 'need':280C 'new':237C 'npm':309C,322C 'object.keys':259C 'obtain':293C 'open':79B,147C 'option':108C 'origin':75B,119C 'originalinit':240C 'originalinit.apply':272C 'packag':26B,313C 'page':73B,122C 'pars':3A,36B,94C 'patch':157C,236C,295C,298C,316C 'patched.add':253C 'patched.has':251C 'rather':97C 'rcqf':14A 'reach':138C 'read':189C 'releas':299C 'remov':288C 'render':129C,182C,205C 'replac':229C,231C,233C 'requir':134C 'return':271C 'run':69B,165C 'see':349C 'self':28B 'self-host':27B 'shown':87C 'sidebar':4A,47B,81B,92C,128C,151C,168C,248C 'snip':213C 'startup':162C 'string':39B,86C,185C,265C 'suppli':110C 'text':53B,101C,197C,227C,228C 'textcont':187C 'this.lang':247C 'time':179C 'turn':192C 'typeof':262C 'untrust':136C 'upgrad':156C,310C 'url':337C 'use':210C,334C 'user':78B,146C 'usual':305C 'version':204C,296C,317C,336C 'weakset':238C 'well':292C 'window.dashboards':223C 'workaround':152C 'www.highcharts.com':354C 'www.highcharts.com/docs/dashboards/installation).':353C","nicknames":[],"mitigations":[],"who_affected":"Applications that use Highcharts Dashboards with edit mode available and that let untrusted users or external data set the Dashboards language configuration are exposed. Teams that only render static charts, or that never expose the edit-mode sidebar and fully control the language strings, can skip it.","tier":"B","verified":{},"analyst_revisit_at":null,"first_public_at":"2026-10-28T19:17:29+00:00","kev":null,"cvss_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","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-118252","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-118252","severity":null,"published_at":"2026-10-28T19:17:29+00:00","modified_at":"2026-10-28T19:17:29+00:00","first_seen_at":"2026-10-28T19:34:54+00:00","fetched_at":"2026-10-28T19:34:54+00:00","note":null},{"source":"ghsa","external_id":"GHSA-rcqf-f6h2-ccg9","url":"https://github.com/advisories/GHSA-rcqf-f6h2-ccg9","severity":"high","published_at":"2026-10-28T19:56:57+00:00","modified_at":"2026-10-28T19:56:57+00:00","first_seen_at":"2026-10-28T20:01:43+00:00","fetched_at":"2026-10-28T20:01:43+00:00","note":null}],"documents":[],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}