Highcharts Grid: `javascript:` URL in credits.href runs script on click
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.
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.).
What to do
Upgrade affected packages to a patched release:
@highcharts/dashboards: upgrade to 4.0.0 or later.@highcharts/grid-pro: upgrade to 3.2.0 or later.
With npm, upgrade the affected package, for example using npm install @highcharts/grid-lite@3.2.0. If Highcharts Grid is loaded from a CDN, use a versioned URL such as https://cdn.jsdelivr.net/npm/@highcharts/grid-lite@3.2.0/grid-lite.js. For additional details, see the installation guide.).
Workarounds
Paste the following after the Grid Pro module is imported and before a Grid is created:
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);
};
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| npm package | @highcharts/dashboards | >= 3.2.0, < 4.0.0 | 4.0.0 |
| npm package | @highcharts/grid-pro | >= 2.0.0, < 3.2.0 | 3.2.0 |
References
- https://github.com/highcharts/highcharts/security/advisories/GHSA-6hgp-fmhr-mrg4
- https://github.com/highcharts/highcharts/pull/25351
- https://github.com/highcharts/highcharts/commit/45b74403acafbe9f621c4a343506721d9129e991
- https://github.com/highcharts/highcharts
- https://github.com/highcharts/highcharts/releases/tag/grid-v3.2.0
- 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- Weakness (CWE)
CWE-79- Platform
- npm
- Package
@highcharts/dashboards, @highcharts/grid-pro- Disclosed
- 28.10.2026
- Updated
- 04.11.2026 10:00
Sources and licenses · Edited or translated by DockRay; source rights and applicable licenses are retained.
OSV / GitHub Advisory Database - GHSA-6hgp-fmhr-mrg4 - CC BY 4.0
Vulnerability history: @highcharts/dashboards
All published vulnerabilities of this package (npm package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 7
- First → latest
- 10.2026 10.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 5
- Medium 2
Disclosures per year
- 2026: 7
-
Highcharts Grid: `javascript:` URL in credits.href runs script on click this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.