---
id: "CVE-2026-116797"
kind: "vulnerability"
aliases: ["CVE-2026-116797", "GHSA-5ghw-9mgr-jvx2"]
title: "Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "@highcharts/grid-pro", "fixed": ["3.2.0"], "affected": ">= 2.0.0, <= 3.1.0", "ecosystem": "npm"}, {"name": "@highcharts/dashboards", "fixed": ["4.0.0"], "affected": "= 3.6.0", "ecosystem": "npm"}]
ecosystems: ["npm"]
tags: ["cwe-79", "frontend", "highcharts", "javascript", "package", "web-apps"]
not_affected_if: ["fixed-column-config", "grid-pro-not-used"]
published_at: "2026-10-28T18:17:14+00:00"
first_seen_at: "2026-10-28T18:34:33+00:00"
updated_at: "2026-10-28T19:56:29+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-116797", "first_seen_at": "2026-10-28T18:34:33+00:00"}, {"source": "ghsa", "url": "https://github.com/advisories/GHSA-5ghw-9mgr-jvx2", "first_seen_at": "2026-10-28T19:56:29+00:00"}]
---

# Highcharts Grid Pro: cell-renderer `attributes` map written with raw `setAttribute`

Highcharts Grid Pro copies cell renderer attributes straight onto input and select elements without sanitising them. An attacker who can control column configuration can add event-handler attributes that run script in the hosting page when a user hovers over, focuses or edits a cell.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- npm:@highcharts/grid-pro affected >= 2.0.0, <= 3.1.0 fixed 3.2.0
- npm:@highcharts/dashboards affected = 3.6.0 fixed 4.0.0

## How to check

- Check the installed Grid Pro version in `package.json` or the bundled file header; versions from `2.0.0` up to but not including `3.2.0` are affected.
- Search the codebase for `cells.renderer.attributes` and `cells.editMode.renderer.attributes` to see whether column config is built from user-controlled data.

## Fix

- Upgrade Highcharts Grid Pro to `3.2.0` or later.
- Until upgraded, do not build column configuration from untrusted input.

## Timeline

- 2026-10-28T18:34:33+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-116797
- 2026-10-28T19:56:29+00:00 ghsa https://github.com/advisories/GHSA-5ghw-9mgr-jvx2

## From the sources

### Impact
The 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.

### Workarounds

If your column configuration comes from a source you do not fully control, paste this snippet right after importing the `Grid` module:

```ts
const ALLOWED_RENDERER_ATTRIBUTES = [
    'autofocus', 'checked', 'max', 'maxlength', 'min', 'minlength',
    'multiple', 'pattern', 'placeholder', 'size', 'step'
];

const scrubColumn = (column) => {
    const cells = column?.cells;

    for (const renderer of [cells?.renderer, cells?.editMode?.renderer]) {
        const attributes = renderer?.attributes;

        if (attributes) {
            for (const key of Object.keys(attributes)) {
                if (!ALLOWED_RENDERER_ATTRIBUTES.includes(key.toLowerCase())) {
                    delete attributes[key];
                }
            }
        }
    }

    return column;
};

const scrubOptions = (options) => {
    scrubColumn(options?.columnDefaults);
    (options?.columns || []).forEach(scrubColumn);
    return options;
};

const proto = Grid.Grid.prototype;

const loadUserOptions = proto.loadUserOptions;
proto.loadUserOptions = function (options, ...rest) {
    scrubOptions(Grid.defaultOptions);
    return loadUserOptions.call(this, scrubOptions(options), ...rest);
};

const updateColumn = proto.updateColumn;
proto.updateColumn = function (columnId, options, ...rest) {
    return updateColumn.call(this, columnId, scrubColumn(options), ...rest);
};
```

### Obtaining the patched version
The 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).

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
