{"id":"CVE-2026-116797","aliases":["EUVD-2026-112281","GHSA-5ghw-9mgr-jvx2"],"status":"published","title":"Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`","description":"Highcharts JS is a JavaScript charting library based on SVG. From 2.0.0 until 3.2.0, Highcharts Grid Pro input renderers copy the cells.renderer.attributes and cells.editMode.renderer.attributes maps to input or select elements with raw setAttribute calls. An attacker who controls column configuration can add event-handler attributes to every rendered row or to the control created when a cell enters edit mode. Script then runs in the hosting page origin when a user hovers over or focuses an input or begins editing. This issue is fixed in Grid Pro 3.2.0.","severity":{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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.00316,"percentile":0.24863,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2026-10-28T17:28:33Z","modified":"2026-10-31T02:30:22Z","fixes":[{"ecosystem":"npm","package":"@highcharts/grid-pro","fixed_in":["3.2.0"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"@highcharts/dashboards","fixed_in":["4.0.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"@highcharts/grid-pro","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"last_affected":"3.1.0"},{"fixed":"3.2.0"}]}]},{"source":"ghsa","ecosystem":"npm","package":"@highcharts/dashboards","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"last_affected":"3.6.0"},{"fixed":"4.0.0"}]}],"versions":["3.6.0"]},{"source":"osv","ecosystem":"npm","package":"@highcharts/grid-pro","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"3.2.0"}]}]},{"source":"osv","ecosystem":"npm","package":"@highcharts/dashboards","ranges":[{"type":"SEMVER","events":[{"introduced":"3.6.0"},{"fixed":"4.0.0"}]}],"versions":["3.6.0"]}],"products":[{"vendor":"@highcharts","product":"dashboards"},{"vendor":"@highcharts","product":"grid-pro"},{"vendor":"highcharts","product":"highcharts"}],"references":[{"url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-5ghw-9mgr-jvx2","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/highcharts/highcharts/commit/52abd4f8f8db87dd20eab7c01444112380e30e98","tags":["x_refsource_MISC","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116797","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-5ghw-9mgr-jvx2"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116797.json","tags":["advisory"]},{"url":"https://github.com/highcharts/highcharts","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-116797","title":"Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`","description":"Highcharts JS is a JavaScript charting library based on SVG. From 2.0.0 until 3.2.0, Highcharts Grid Pro input renderers copy the cells.renderer.attributes and cells.editMode.renderer.attributes maps to input or select elements with raw setAttribute calls. An attacker who controls column configuration can add event-handler attributes to every rendered row or to the control created when a cell enters edit mode. Script then runs in the hosting page origin when a user hovers over or focuses an input or begins editing. This issue is fixed in Grid Pro 3.2.0.","status":"published","published":"2026-10-28T17:28:33.128Z","modified":"2026-10-28T19:48:29.425Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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-112281","description":"Highcharts JS is a JavaScript charting library based on SVG. From 2.0.0 until 3.2.0, Highcharts Grid Pro input renderers copy the cells.renderer.attributes and cells.editMode.renderer.attributes maps to input or select elements with raw setAttribute calls. An attacker who controls column configuration can add event-handler attributes to every rendered row or to the control created when a cell enters edit mode. Script then runs in the hosting page origin when a user hovers over or focuses an input or begins editing. This issue is fixed in Grid Pro 3.2.0.","status":"published","published":"2026-10-28T17:28:33Z","modified":"2026-10-28T19:48:29Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","level":"high"}],"updated_at":"2026-11-02T16:59:18.841799Z"}],"ghsa":[{"id":"GHSA-5ghw-9mgr-jvx2","title":"Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`","description":"### Impact\nThe input-type cell renderers copy every entry of the renderer's `attributes` option onto the input or select element they create, without checking the attribute names. An attacker who controls the Grid configuration can supply entries under a column's `cells.renderer.attributes` or `cells.editMode.renderer.attributes` whose names are event handlers, and those handlers execute in the origin of the page hosting the Grid. A view renderer places the handler on the input rendered in every row of the column as soon as the Grid renders; an edit-mode renderer places it on the input created when a cell enters edit mode, and that input is focused immediately, so a `focus` handler runs as soon as the user starts editing. Exploitation requires that untrusted data reach the Grid configuration and that a user hover over or focus one of the rendered inputs, or begin editing a cell. The Pro DataGrid that shipped inside the Dashboards package is included.\n\n### Workarounds\n\nIf your column configuration comes from a source you do not fully control, paste this snippet right after importing the `Grid` module:\n\n```ts\nconst ALLOWED_RENDERER_ATTRIBUTES = [\n    'autofocus', 'checked', 'max', 'maxlength', 'min', 'minlength',\n    'multiple', 'pattern', 'placeholder', 'size', 'step'\n];\n\nconst scrubColumn = (column) =\u003e {\n    const cells = column?.cells;\n\n    for (const renderer of [cells?.renderer, cells?.editMode?.renderer]) {\n        const attributes = renderer?.attributes;\n\n        if (attributes) {\n            for (const key of Object.keys(attributes)) {\n                if (!ALLOWED_RENDERER_ATTRIBUTES.includes(key.toLowerCase())) {\n                    delete attributes[key];\n                }\n            }\n        }\n    }\n\n    return column;\n};\n\nconst scrubOptions = (options) =\u003e {\n    scrubColumn(options?.columnDefaults);\n    (options?.columns || []).forEach(scrubColumn);\n    return options;\n};\n\nconst proto = Grid.Grid.prototype;\n\nconst loadUserOptions = proto.loadUserOptions;\nproto.loadUserOptions = function (options, ...rest) {\n    scrubOptions(Grid.defaultOptions);\n    return loadUserOptions.call(this, scrubOptions(options), ...rest);\n};\n\nconst updateColumn = proto.updateColumn;\nproto.updateColumn = function (columnId, options, ...rest) {\n    return updateColumn.call(this, columnId, scrubColumn(options), ...rest);\n};\n```\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/grid-lite@3.2.0`. If you load Highcharts Grid from a CDN, use a versioned URL, for example `https://cdn.jsdelivr.net/npm/@highcharts/grid-lite@3.2.0/grid-lite.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/grid/installation).","status":"published","published":"2026-10-28T19:56:02Z","modified":"2026-10-28T19:56:05Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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-116797","description":"Highcharts JS is a JavaScript charting library based on SVG. From 2.0.0 until 3.2.0, Highcharts Grid Pro input renderers copy the cells.renderer.attributes and cells.editMode.renderer.attributes maps to input or select elements with raw setAttribute calls. An attacker who controls column configuration can add event-handler attributes to every rendered row or to the control created when a cell enters edit mode. Script then runs in the hosting page origin when a user hovers over or focuses an input or begins editing. This issue is fixed in Grid Pro 3.2.0.","status":"published","published":"2026-10-28T18:17:14.607Z","modified":"2026-10-29T15:08:43.21Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/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-116797","title":"Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`","description":"Highcharts JS is a JavaScript charting library based on SVG. From 2.0.0 until 3.2.0, Highcharts Grid Pro input renderers copy the cells.renderer.attributes and cells.editMode.renderer.attributes maps to input or select elements with raw setAttribute calls. An attacker who controls column configuration can add event-handler attributes to every rendered row or to the control created when a cell enters edit mode. Script then runs in the hosting page origin when a user hovers over or focuses an input or begins editing. This issue is fixed in Grid Pro 3.2.0.","status":"published","published":"2026-10-28T17:28:33.128Z","modified":"2026-11-11T10:47:30.495997177Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-11T03:22:00.901153Z"},{"id":"GHSA-5ghw-9mgr-jvx2","title":"Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`","description":"### Impact\nThe input-type cell renderers copy every entry of the renderer's `attributes` option onto the input or select element they create, without checking the attribute names. An attacker who controls the Grid configuration can supply entries under a column's `cells.renderer.attributes` or `cells.editMode.renderer.attributes` whose names are event handlers, and those handlers execute in the origin of the page hosting the Grid. A view renderer places the handler on the input rendered in every row of the column as soon as the Grid renders; an edit-mode renderer places it on the input created when a cell enters edit mode, and that input is focused immediately, so a `focus` handler runs as soon as the user starts editing. Exploitation requires that untrusted data reach the Grid configuration and that a user hover over or focus one of the rendered inputs, or begin editing a cell. The Pro DataGrid that shipped inside the Dashboards package is included.\n\n### Workarounds\n\nIf your column configuration comes from a source you do not fully control, paste this snippet right after importing the `Grid` module:\n\n```ts\nconst ALLOWED_RENDERER_ATTRIBUTES = [\n    'autofocus', 'checked', 'max', 'maxlength', 'min', 'minlength',\n    'multiple', 'pattern', 'placeholder', 'size', 'step'\n];\n\nconst scrubColumn = (column) =\u003e {\n    const cells = column?.cells;\n\n    for (const renderer of [cells?.renderer, cells?.editMode?.renderer]) {\n        const attributes = renderer?.attributes;\n\n        if (attributes) {\n            for (const key of Object.keys(attributes)) {\n                if (!ALLOWED_RENDERER_ATTRIBUTES.includes(key.toLowerCase())) {\n                    delete attributes[key];\n                }\n            }\n        }\n    }\n\n    return column;\n};\n\nconst scrubOptions = (options) =\u003e {\n    scrubColumn(options?.columnDefaults);\n    (options?.columns || []).forEach(scrubColumn);\n    return options;\n};\n\nconst proto = Grid.Grid.prototype;\n\nconst loadUserOptions = proto.loadUserOptions;\nproto.loadUserOptions = function (options, ...rest) {\n    scrubOptions(Grid.defaultOptions);\n    return loadUserOptions.call(this, scrubOptions(options), ...rest);\n};\n\nconst updateColumn = proto.updateColumn;\nproto.updateColumn = function (columnId, options, ...rest) {\n    return updateColumn.call(this, columnId, scrubColumn(options), ...rest);\n};\n```\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/grid-lite@3.2.0`. If you load Highcharts Grid from a CDN, use a versioned URL, for example `https://cdn.jsdelivr.net/npm/@highcharts/grid-lite@3.2.0/grid-lite.js`. For more on each installation method, see the [installation guide](https://www.highcharts.com/docs/grid/installation).","status":"published","published":"2026-10-28T19:56:02Z","modified":"2026-10-28T20:15:05.434231493Z","cvss":[{"version":"4.0","score":8.5,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N","level":"high"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:38.213481Z"}]}}
