vega-functions@5.0.0 vulnerabilities

Custom functions for the Vega expression language.

  • latest version

    5.15.0

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    6 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    vega-functions is a Custom functions for the Vega expression language.

    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-functions to version 5.13.1 or higher.

    <5.13.1
    • M
    Cross-site Scripting (XSS)

    vega-functions is a Custom functions for the Vega expression language.

    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-functions to version 5.13.1 or higher.

    <5.13.1