shvl@1.3.0 vulnerabilities

Get and set dot-notated properties within an object

  • latest version

    3.0.0

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    2 years ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the shvl 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

    shvl is a Get and set dot-notated properties within an object

    Affected versions of this package are vulnerable to Prototype Pollution due to an incomplete fix not protecting against the constructor.prototype vector.

    POC

    var shvl = require("shvl")
    let obj = {}
    console.log("Before: " + {}.polluted)
    shvl.set(obj, 'constructor.prototype.polluted', 'Polluted')
    console.log("After: " + {}.polluted)
    

    How to fix Prototype Pollution?

    Upgrade shvl to version 3.0.0 or higher.

    <3.0.0
    • H
    Prototype Pollution

    shvl is a Get and set dot-notated properties within an object

    Affected versions of this package are vulnerable to Prototype Pollution. It allows an attacker to cause a denial of service and may lead to remote code execution.

    How to fix Prototype Pollution?

    Upgrade shvl to version 2.0.2 or higher.

    >=1.0.0 <2.0.2