tree-kit@0.1.4 vulnerabilities

Tree utilities which provides a full-featured extend and object-cloning facility, and various tools to deal with nested object structures.

  • latest version

    0.8.7

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    10 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    tree-kit is a Tree utilities which provides a full-featured extend and object-cloning facility, and various tools to deal with nested object structures.

    Affected versions of this package are vulnerable to Prototype Pollution via the extend function. An attacker-controlled object, e.g. data in JSON format received over the network and parsed by the application using tree-kit's extend function, can be used to pollute the prototype of the Object.prototype by adding and overwriting its data and functions.

    How to fix Prototype Pollution?

    Upgrade tree-kit to version 0.7.5 or higher.

    <0.7.5
    • H
    Prototype Pollution

    tree-kit is a Tree utilities which provides a full-featured extend and object-cloning facility, and various tools to deal with nested object structures.

    Affected versions of this package are vulnerable to Prototype Pollution via dotPath.set.

    PoC:

    const { dotPath } = require('tree-kit')
    
    console.log("Before: ", {}.polluted)
    dotPath.set({}, '__proto__.polluted', true)
    console.log("After: ", {}.polluted)
    

    How to fix Prototype Pollution?

    Upgrade tree-kit to version 0.7.0 or higher.

    <0.7.0