-
-
Notifications
You must be signed in to change notification settings - Fork 664
Closed as not planned
Labels
Description
Bug Description
The filter
property of a select
parameter exposes the browser's Window
object via event.view
, allowing arbitrary code to be executed via scale(event.view.setTimeout, '[code payload here]')
.
This is related to vega/vega#3027. It is distinct from GHSA-4vq7-882g-wcg4 and is not fixed by vega/vega@ab371a0 as scale$2
only checks if a scale is registered when the scale is specified as a string; if a function is passed to scale()
then it is invoked unconditionally.
The following example reproduces the issue:
Checklist
- I checked for duplicate issues.