Highcharts Grid: pagination language options are parsed as HTML
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.
Source excerpt · OSVExploitation requires that untrusted data reach the Grid language configuration and that pagination be enabled on the Grid.
Affected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
| Affected range | Recorded fix |
|---|---|
| From 2.0.0 before 3.2.0Semantic versions | 3.2.0 |
Version evidence: OSV · GHSA-r5wg-q8fc-p6w2
View original version evidence (0 explicit versions)
| Affected range | Recorded fix |
|---|---|
| From 2.0.0 before 3.2.0Semantic versions | 3.2.0 |
Version evidence: OSV · GHSA-r5wg-q8fc-p6w2
View original version evidence (0 explicit versions)
Affected products
Vendor version evidence. Product records are separate from automatic dependency matching.
highcharts · GitHub_M
highcharts
1 range
highcharts · GitHub_M
highcharts
Compare with this publisher’s ranges. This does not inspect your installation.
affected
< 13.0.0-beta.2
Other versions: unknown
@highcharts · GitHub_M
grid-lite
1 range
@highcharts · GitHub_M
grid-lite
Compare with this publisher’s ranges. This does not inspect your installation.
affected
>= 2.0.0, < 3.2.0
Other versions: unknown
@highcharts · GitHub_M
grid-pro
1 range
@highcharts · GitHub_M
grid-pro
Compare with this publisher’s ranges. This does not inspect your installation.
affected
>= 2.0.0, < 3.2.0
Other versions: unknown
Original source description
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, '<');
}
}
};
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.
Inside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-118254View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Underlying weaknesses
The source’s classification of what caused the vulnerability.
Contributing organizations · 1
Assigning organization
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.