dot-object@0.11.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

    11 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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