GHSA-wgxm-rg53-h2c6

    Dashboard / Vulnerabilities / GHSA-wgxm-rg53-h2c6

    GHSA-wgxm-rg53-h2c6

    Published: 24 May 2022Last Modified: 22 Apr 2024

    Summary: Prototype pollution vulnerability in 'deep-set'

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

    Affected packages

    Package

    Name: deep-set

    Purl: pkg:npm/deep-set

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 1.0.0
    Fixed -None

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-wgxm-rg53-h2c6 | CVE-DB