Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-rcw3-wmx7-cphr

Опубликовано: 27 мар. 2025
Источник: github
Github: Прошло ревью
CVSS4: 6.9
CVSS3: 6.1

Описание

Vega Cross-Site Scripting (XSS) via event filter when not using CSP mode expressionInterpeter

Impact

In vega 5.30.0 and lower, vega-functions 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported.

Patches

Patched in vega 5.31.0 / vega-functions 5.16.0

Workarounds

Is there a way for users to fix or remediate the vulnerability without upgrading?

  • Run vega without vega.expressionInterpreter. This mode is not the default as it is slower.
  • Using the interpreter described in CSP safe mode (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.

References

Reproduction of the error in Vega by @mattijn

{ "$schema": "https://vega.github.io/schema/vega/v5.json", "signals": [ { "name": "inject_alert", "on": [ { "events": [ { "type": "mousedown", "marktype": "rect", "filter": ["scale(event.view.setTimeout, 'alert(\"alert\")')"] } ], "update": "datum" } ] } ], "marks": [ { "type": "rect", "encode": { "update": { "x": {"value": 0}, "y": {"value": 0}, "width": {"value": 100}, "height": {"value": 100} } } } ] }

Пакеты

Наименование

vega

npm
Затронутые версииВерсия исправления

< 5.31.0

5.31.0

Наименование

vega-functions

npm
Затронутые версииВерсия исправления

< 5.16.0

5.16.0

EPSS

Процентиль: 47%
0.00245
Низкий

6.9 Medium

CVSS4

6.1 Medium

CVSS3

Дефекты

CWE-79

Связанные уязвимости

CVSS3: 6.1
ubuntu
11 месяцев назад

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In `vega` 5.30.0 and lower and in `vega-functions` 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported. The issue is patched in `vega` `5.31.0` and `vega-functions` `5.16.0`. Some workarounds are available. Run `vega` without `vega.expressionInterpreter`. This mode is not the default as it is slower. Alternatively, using the interpreter described in CSP safe mode (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.

CVSS3: 6.1
nvd
11 месяцев назад

Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. In `vega` 5.30.0 and lower and in `vega-functions` 5.15.0 and lower , it was possible to call JavaScript functions from the Vega expression language that were not meant to be supported. The issue is patched in `vega` `5.31.0` and `vega-functions` `5.16.0`. Some workarounds are available. Run `vega` without `vega.expressionInterpreter`. This mode is not the default as it is slower. Alternatively, using the interpreter described in CSP safe mode (Content Security Policy) prevents arbitrary Javascript from running, so users of this mode are not affected by this vulnerability.

CVSS3: 6.1
debian
11 месяцев назад

Vega is a visualization grammar, a declarative format for creating, sa ...

EPSS

Процентиль: 47%
0.00245
Низкий

6.9 Medium

CVSS4

6.1 Medium

CVSS3

Дефекты

CWE-79