CVE-2026-118254
Mở trang đầy đủCVSS 8.6 HIGH
Highcharts Grid parses pagination language options as HTML
Mô tả
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.
Điểm và phân loại
- CVSS
- 8.6 HIGH v4.0
- Nguồn điểm
- NVD
- Mức độ (theo nguồn)
- HIGH
- EPSS
- 0.42%
- CWE
- CWE-79
Vector 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Ảnh hưởng
| Package | Bản bị ảnh hưởng | Bản đã sửa |
|---|---|---|
npm @highcharts/grid-lite |
>= 2.0.0, <= 3.1.0 |
3.2.0
|
npm @highcharts/grid-pro |
>= 2.0.0, <= 3.1.0 |
3.2.0
|
npm @highcharts/grid-lite |
>= 2.0.0, < 3.2.0 |
3.2.0
|
npm @highcharts/grid-pro |
>= 2.0.0, < 3.2.0 |
3.2.0
|
Sản phẩm
- highcharts highcharts
- @highcharts grid-lite
- @highcharts grid-pro
Vì sao được giữ
- CVSS 8.6 >= 8.0
Loại tác động
Không nhận ra loại tác động nào từ CWE, vector hay mô tả.
Dữ liệu riêng của nguồn
- CVE.org · Đơn vị cấp mã
- GitHub_M
- OSV.dev · ID
- GHSA-r5wg-q8fc-p6w2
Tham khảo
- https://github.com/advisories/GHSA-r5wg-q8fc-p6w2
- https://github.com/highcharts/highcharts/security/advisories/GHSA-r5wg-q8fc-p6w2
- https://github.com/highcharts/highcharts/commit/1e8ded84d52191883965641b863cf0c73eb759aa
- https://github.com/highcharts/highcharts/releases/tag/grid-v3.2.0
- https://osv.dev/vulnerability/GHSA-r5wg-q8fc-p6w2
- https://github.com/highcharts/highcharts