ADVISORIES

GitHub Advisory Database

GHSA-wgxm-rg53-h2c6

Prototype pollution vulnerability in 'deep-set'

Critical No fix available CVE-2020-28276

Details

The NPM module 'deep-set' can be abused by Prototype Pollution vulnerability since the function deepSet() does not check for the type of object before assigning value to the property. Due to this flaw an attacker could create a non-existent property or able to manipulate the property which leads to Denial of Service or potentially Remote code execution.

PoC

var deepSet = require('deep-set')
var obj = {'1':'2'}
console.log(obj.isAdmin);
deepSet(obj, '__proto__.isAdmin', 'true')
console.log(obj.isAdmin);

Affected packages

EcosystemPackageAffected versions
npmdeep-set
From 1.0.0 up to and including 1.0.1

References