vega@2.0.2 vulnerabilities

The Vega visualization grammar.

  • latest version

    5.30.0

  • latest non vulnerable version

  • first published

    11 years ago

  • latest version published

    6 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the vega 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 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
    • M
    Arbitrary Code Execution

    vega is a library that implements Vega visualization grammar.

    Affected versions of this package are vulnerable to Arbitrary Code Execution in the packages/vega-loader/src/loader.js file, when clicking HREF links.

    How to fix Arbitrary Code Execution?

    Upgrade vega to version 5.5.0 or higher.

    <5.5.0
    • H
    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). Through a specially crafted Vega expression, an attacker could execute arbitrary javascript on a victim's machine.

    How to fix Cross-site Scripting (XSS)?

    Upgrade vega to version 5.17.3 or higher.

    <5.17.3
    • H
    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) in the expression parser and code generator.

    How to fix Cross-site Scripting (XSS)?

    Upgrade vega to version 5.17.1 or higher.

    <5.17.1
    • M
    Cross-site Scripting (XSS)

    vega is The Vega visualization grammar tool.

    Affected versions of the package are vulnerable to Cross-site Scripting (XSS). There is no validation that the requested group is an existing group before calling its scale method and using the returned scale.

    How to fix Cross-site Scripting (XSS)?

    Upgrade vega to version 2.4.0 or higher.

    <2.4.0