logo

CVE-2020-28276 deep-set

Package

Manager: npm
Name: deep-set
Vulnerable Version: >=1.0.0 <=1.0.1

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

EPSS: 0.02883 pctl0.85793

Details

Prototype pollution vulnerability in 'deep-set' 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 ```js var deepSet = require('deep-set') var obj = {'1':'2'} console.log(obj.isAdmin); deepSet(obj, '__proto__.isAdmin', 'true') console.log(obj.isAdmin); ```

Metadata

Created: 2022-05-24T17:37:25Z
Modified: 2024-04-22T23:14:16Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-wgxm-rg53-h2c6/GHSA-wgxm-rg53-h2c6.json
CWE IDs: ["CWE-1321"]
Alternative ID: GHSA-wgxm-rg53-h2c6
Finding: F390
Auto approve: 1