dot-object@1.2.0 vulnerabilities

dot-object makes it possible to transform and read (JSON) objects using dot notation.

  • latest version

    2.1.5

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    7 months ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the dot-object 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
    • M
    Prototype Pollution

    dot-object is a module that makes it possible to transform javascript objects using dot notation.

    Affected versions of this package are vulnerable to Prototype Pollution. The set function could be tricked into adding or modifying properties of Object.prototype using a __proto__ payload.

    PoC by JHU System Security Lab

    var a = require("dot-object")
    var path = "__proto__";
    var val = {toString:"JHU"}
    a.set(path,val,{},true);
    console.log({}.toString);
    

    How to fix Prototype Pollution?

    Upgrade dot-object to version 2.1.3 or higher.

    <2.1.3