{"id":"GHSA-6hgp-fmhr-mrg4","summary":"Highcharts Grid: `javascript:` URL in credits.href runs script on click","details":"### Impact\nAn 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.\n\n### Workarounds\nPaste in after the Grid Pro module is imported, before a Grid is created.\n\n```javascript\nconst { AST } = Grid;\n\nfunction sanitize(options) {\n    const credits = options && options.credits;\n\n    if (credits && typeof credits.href === 'string') {\n        const filtered = AST.filterUserAttributes({ href: credits.href });\n\n        if (!filtered.href) {\n            delete credits.href;\n        }\n    }\n\n    return options;\n}\n\n// Both Grid.grid() and grid.update() funnel through loadUserOptions, so one\n// hook covers both entry points.\nconst { prototype } = Grid.Grid;\nconst loadUserOptions = prototype.loadUserOptions;\n\nprototype.loadUserOptions = function (options, ...rest) {\n    sanitize(options);\n    return loadUserOptions.call(this, 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).","aliases":["CVE-2026-118255"],"modified":"2026-10-28T20:15:05.452724193Z","published":"2026-10-28T19:57:48Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-10-28T19:57:48Z","nvd_published_at":null,"cwe_ids":["CWE-79"]},"references":[{"type":"WEB","url":"https://github.com/highcharts/highcharts/security/advisories/GHSA-6hgp-fmhr-mrg4"},{"type":"WEB","url":"https://github.com/highcharts/highcharts/pull/25351"},{"type":"WEB","url":"https://github.com/highcharts/highcharts/commit/45b74403acafbe9f621c4a343506721d9129e991"},{"type":"PACKAGE","url":"https://github.com/highcharts/highcharts"},{"type":"WEB","url":"https://github.com/highcharts/highcharts/releases/tag/grid-v3.2.0"}],"affected":[{"package":{"name":"@highcharts/dashboards","ecosystem":"npm","purl":"pkg:npm/%40highcharts/dashboards"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.2.0"},{"fixed":"4.0.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 3.6.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6hgp-fmhr-mrg4/GHSA-6hgp-fmhr-mrg4.json"}},{"package":{"name":"@highcharts/grid-pro","ecosystem":"npm","purl":"pkg:npm/%40highcharts/grid-pro"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"3.2.0"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 3.1.0","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6hgp-fmhr-mrg4/GHSA-6hgp-fmhr-mrg4.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}