GHSA-6hgp-fmhr-mrg4

Suggest an improvement
Source
https://github.com/advisories/GHSA-6hgp-fmhr-mrg4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6hgp-fmhr-mrg4/GHSA-6hgp-fmhr-mrg4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-6hgp-fmhr-mrg4
Aliases
  • CVE-2026-118255
Published
2026-10-28T19:57:48Z
Modified
2026-10-28T20:15:05Z
Severity
  • 8.4 (High) CVSS_V4 - 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 CVSS Calculator
Summary
Highcharts Grid: `javascript:` URL in credits.href runs script on click
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-79"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-10-28T19:57:48Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @highcharts/dashboards

Package

Name
@highcharts/dashboards
View open source insights on deps.dev
Purl
pkg:npm/%40highcharts/dashboards

Affected ranges

Type
SEMVER
Events
Introduced
3.2.0
Fixed
4.0.0

Database specific

last_known_affected_version_range
"<= 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"

npm / @highcharts/grid-pro

Package

Name
@highcharts/grid-pro
View open source insights on deps.dev
Purl
pkg:npm/%40highcharts/grid-pro

Affected ranges

Type
SEMVER
Events
Introduced
2.0.0
Fixed
3.2.0

Database specific

last_known_affected_version_range
"<= 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"