GHSA-r5wg-q8fc-p6w2

Suggest an improvement
Source
https://github.com/advisories/GHSA-r5wg-q8fc-p6w2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-r5wg-q8fc-p6w2/GHSA-r5wg-q8fc-p6w2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r5wg-q8fc-p6w2
Aliases
  • CVE-2026-118254
Published
2026-10-28T19:57:34Z
Modified
2026-10-28T20:15:06Z
Severity
  • 8.6 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:L/SI:L/SA:N CVSS Calculator
Summary
Highcharts Grid parses pagination language options as HTML
Details

Impact

The pagination language strings are written into the DOM as markup rather than as text. An attacker who controls those language options can supply elements carrying event handlers, and those handlers execute in the origin of the page hosting the Grid when the pagination controls render. Exploitation requires that untrusted data reach the Grid language configuration and that pagination be enabled on the Grid.

Workarounds

Run this once after loading the Grid, before creating any grid:

{
    const Pagination = Grid.Pagination;

    const escapeLang = (pagination) => {
        const lang = pagination.lang;
        if (!lang) {
            return;
        }

        for (const key of ['pageInfo', 'pageSizeLabel']) {
            if (typeof lang[key] === 'string') {
                lang[key] = lang[key].replace(/</g, '&lt;');
            }
        }
    };

    for (const name of ['updatePageInfo', 'renderPageSizeSelector']) {
        const original = Pagination.prototype[name];

        Pagination.prototype[name] = function (...args) {
            escapeLang(this);
            return original.apply(this, args);
        };
    }
}

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:34Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

npm / @highcharts/grid-lite

Package

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

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-r5wg-q8fc-p6w2/GHSA-r5wg-q8fc-p6w2.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-r5wg-q8fc-p6w2/GHSA-r5wg-q8fc-p6w2.json"