Highcharts Grid: `javascript:` URL in credits.href runs script on click
CVE-2026-118255 · GHSA-6hgp-fmhr-mrg4 · published 28 Oct 2026
How serious is it
- Severity: high, CVSS score 8.4 out of 10.
- No exploit prediction (EPSS) score yet.
- Not on the CISA list of exploited vulnerabilities.
- No public exploit in Exploit-DB.
Is your app affected by CVE-2026-118255?
Paste this prompt into Claude Code, Cursor or any AI coding tool: it runs a free Shippable scan of your project and fixes what it finds. Built with Lovable, Bolt or v0? Scan your live app. Or upload your package file.
Who is affected
@highcharts/dashboards(npm) >= 3.2.0, <= 3.6.0@highcharts/grid-pro(npm) >= 2.0.0, <= 3.1.0
How to check
- Run
npm ls @highcharts/dashboardsin your project to see the installed version, including copies pulled in by other packages. - Run
npm ls @highcharts/grid-proin your project to see the installed version, including copies pulled in by other packages. - Or paste your lockfile into the checker: it lists every package with a known vulnerability, this one included.
- Or run
npx shippable-dev scan localhost:3000in your project folder. It reads your lockfile and flags this vulnerability along with every other known one.
How to fix
Copies a prompt for Claude Code, Cursor or Codex: it checks your lockfiles for this and upgrades it.
- On >= 3.2.0, <= 3.6.0: Upgrade
@highcharts/dashboardsto 4.0.0 or later, commit the lockfile and redeploy. - On >= 2.0.0, <= 3.1.0: Upgrade
@highcharts/grid-proto 3.2.0 or later, commit the lockfile and redeploy. - If a vulnerable version was live, check your logs and rotate the secrets that server could read.
The advisory
### Impact
An attacker who controls the Grid configuration can set `credits.href` to a `javascript:` URL. The value is not validated against an allowed-scheme list before it is applied to the credits link, so activating that link runs attacker-supplied script in the origin of the page hosting the Grid. Exploitation requires that untrusted data reach the Grid configuration and that a user activate the credits link. Script running this way has the same access to page data, storage and session state as the hosting application.
### Workarounds
Paste in after the Grid Pro module is imported, before a Grid is created.
```javascript
const { AST } = Grid;
function sanitize(options) {
const credits = options && options.credits;
if (credits && typeof credits.href === 'string') {
const filtered = AST.filterUserAttributes({ href: credits.href });
if (!filtered.href) {
delete credits.href;
}
}
return options;
}
// Both Grid.grid() and grid.update() funnel through loadUserOptions, so one
// hook covers both entry points.
const { prototype } = Grid.Grid;
const loadUserOptions = prototype.loadUserOptions;
prototype.loadUserOptions = function (options, ...rest) {
sanitize(options);
return loadUserOptions.call(this, 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).
Check your whole app
Dependencies are only half of it. Free and read-only: before you push, run npx shippable-dev scan localhost:3000 in your project folder, no account needed. For your live app, you prove it's yours with a one-line tag first.
References
- github.com/highcharts/highcharts/security/advisories/GHSA-6hgp-fmhr-mrg4
- github.com/highcharts/highcharts/pull/25351
- github.com/highcharts/highcharts/commit/45b74403acafbe9f621c4a343506721d9129e991
- github.com/highcharts/highcharts/releases/tag/grid-v3.2.0
- github.com/advisories/GHSA-6hgp-fmhr-mrg4
- github.com/highcharts/highcharts
Merged from GitHub Advisory Database, OSV. Last updated 29 Oct 2026. All vulnerabilities · RSS · JSON