Highcharts Grid Proに遠隔からスクリプトを実行される脆弱性
Summary
Highcharts Grid Proの2.0.0から3.2.0未満で、セルのレンダラー属性が無害化されずに設定される脆弱性が見つかりました。列の設定を操作できる攻撃者により、利用者がセルにマウスを重ねたり編集を始めたりするとスクリプトが実行されるおそれがあります。CVSS v4.0のスコアは8.5(High)です。Grid Pro 3.2.0で修正されているため、3.2.0以降へ更新してください。
AI summary
Written by an external AI model and may contain mistakes. Check the original description and references below before acting on it.
Highcharts Grid Proの2.0.0から3.2.0未満で、セルのレンダラー属性が無害化されずに設定される脆弱性が見つかりました。列の設定を操作できる攻撃者により、利用者がセルにマウスを重ねたり編集を始めたりするとスクリプトが実行されるおそれがあります。CVSS v4.0のスコアは8.5(High)です。Grid Pro 3.2.0で修正されているため、3.2.0以降へ更新してください。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| highcharts | highcharts | — | — |
| @highcharts | grid-pro | — | — |
| @highcharts | dashboards | — | — |
| npm | @highcharts/grid-pro |
≥ 2.0.0, < 3.2.0 |
3.2.0 |
| npm | @highcharts/dashboards |
≥ 3.6.0, < 4.0.0 |
4.0.0 |
Original description The description as published by the source.
Impact
The input-type cell renderers copy every entry of the renderer's attributes option onto the input or select element they create, without checking the attribute names. An attacker who controls the Grid configuration can supply entries under a column's cells.renderer.attributes or cells.editMode.renderer.attributes whose names are event handlers, and those handlers execute in the origin of the page hosting the Grid. A view renderer places the handler on the input rendered in every row of the column as soon as the Grid renders; an edit-mode renderer places it on the input created when a cell enters edit mode, and that input is focused immediately, so a focus handler runs as soon as the user starts editing. Exploitation requires that untrusted data reach the Grid configuration and that a user hover over or focus one of the rendered inputs, or begin editing a cell. The Pro DataGrid that shipped inside the Dashboards package is included.
Workarounds
If your column configuration comes from a source you do not fully control, paste this snippet right after importing the Grid module:
const ALLOWED_RENDERER_ATTRIBUTES = [
'autofocus', 'checked', 'max', 'maxlength', 'min', 'minlength',
'multiple', 'pattern', 'placeholder', 'size', 'step'
];
const scrubColumn = (column) => {
const cells = column?.cells;
for (const renderer of [cells?.renderer, cells?.editMode?.renderer]) {
const attributes = renderer?.attributes;
if (att…
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com