vega@5.21.0 vulnerabilities

The Vega visualization grammar.

Direct Vulnerabilities

Known vulnerabilities in the vega package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable Version
  • M
Cross-site Scripting (XSS)

vega is a library that implements Vega visualization grammar.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the scale expression function which has the ability to call arbitrary functions with a single controlled argument. This can be exploited to escape the Vega expression sandbox in order to execute arbitrary JavaScript.

How to fix Cross-site Scripting (XSS)?

Upgrade vega to version 5.23.0 or higher.

<5.23.0
  • M
Cross-site Scripting (XSS)

vega is a library that implements Vega visualization grammar.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the lassoAppend function. lassoAppend accepts 3 arguments and internally invokes push function on the 1st argument specifying array consisting of 2nd and 3rd arguments as push call argument. The type of the 1st argument is supposed to be an array, but it's not enforced.

This makes it possible to specify any object with a push function as the 1st argument, push function can be set to any function that can be access via event.view (not all such functions can be exploited due to invalid context or signature, but some can, e.g. console.log).

How to fix Cross-site Scripting (XSS)?

Upgrade vega to version 5.23.0 or higher.

<5.23.0