org.webjars.npm:vega-functions@5.13.0 vulnerabilities

  • latest version

    5.18.0

  • latest non vulnerable version

  • first published

    5 years ago

  • latest version published

    25 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm: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)

    org.webjars.npm:vega-functions is a Custom functions for the Vega expression language.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the RegExp.prototype[@@replace] method. An attacker can execute arbitrary JavaScript code by manipulating the input to the replace function to trigger a malicious exec call.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.npm:vega-functions to version 5.18.0 or higher.

    [,5.18.0)
    • M
    Cross-site Scripting (XSS)

    org.webjars.npm: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 event filter. An attacker can execute arbitrary JavaScript code by manipulating input to the Vega expression language that is not properly sanitized when CSP mode is not enabled.

    Note:

    This is only exploitable if the vega.expressionInterpreter is disabled, which is not the default setting.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.npm:vega-functions to version 5.18.0 or higher.

    [,5.18.0)
    • M
    Cross-site Scripting (XSS)

    org.webjars.npm: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 org.webjars.npm:vega-functions to version 5.15.0 or higher.

    [,5.15.0)
    • M
    Cross-site Scripting (XSS)

    org.webjars.npm: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 org.webjars.npm:vega-functions to version 5.15.0 or higher.

    [,5.15.0)