js-data@1.5.7 vulnerabilities

Robust, framework-agnostic in-memory data store.

Direct Vulnerabilities

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

Fix vulnerabilities automatically

Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

Fix for free
VulnerabilityVulnerable Version
  • H
Prototype Pollution

js-data is a Robust, framework-agnostic in-memory data store.

Affected versions of this package are vulnerable to Prototype Pollution via the deepFillIn and the set functions. This is an incomplete fix of CVE-2020-28442.

How to fix Prototype Pollution?

A fix was pushed into the master branch but not yet published.

*
  • H
Prototype Pollution

js-data is a Robust, framework-agnostic in-memory data store.

Affected versions of this package are vulnerable to Prototype Pollution via the deepMixIn and deepFillIn functions.

PoC

const { utils } = require("js-data");
const obj = {};
const source = JSON.parse('{"__proto__":{"polluted":"yes"}}');
console.log("Before : " + obj.polluted);
utils.deepMixIn({}, source);
// utils.deepFillIn({}, source);
console.log("After : " + obj.polluted);

How to fix Prototype Pollution?

Upgrade js-data to version 3.0.10 or higher.

<3.0.10