sds@4.4.0 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