sds@0.2.4 vulnerabilities

structured data search

Direct Vulnerabilities

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

sds is a structured data search package.

Affected versions of this package are vulnerable to Prototype Pollution. The library could be tricked into adding or modifying properties of the Object.prototype by abusing the set function located in js/set.js.

Note: This vulnerability derives from an incomplete fix to CVE-2020-7618

###POC:

const root = require('sds');
obj = {};
let payload = 'constructor.prototype.polluted';    
root.set({}, payload, "yes");
console.log(polluted);

How to fix Prototype Pollution?

There is no fixed version for sds.

>=0.0.0
  • M
Prototype Pollution

sds is a structured data search package.

Affected versions of this package are vulnerable to Prototype Pollution. The library could be tricked into adding or modifying properties of the Object.prototype by abusing the set function located in js/set.js.

PoC

var root = require("sds");
var payload = "__proto__.jhu";
root.set({},payload,true);
console.log({}.jhu);

How to fix Prototype Pollution?

Upgrade sds to version 4.0.0 or higher.

<4.0.0