Vulnerabilities 1 via 1 paths
Dependencies 1
Source npm

Snyk continuously finds and fixes vulnerabilities in your dependencies.

  • 1
  • 1
  • 0
  • 0
low severity

Prototype Pollution

  • Vulnerable module: hoek
  • Introduced through: hoek@0.9.1

Detailed paths

  • Introduced through: boom@0.4.2 hoek@0.9.1
    Remediation: Upgrade to boom@3.1.3.


hoek is a Utility methods for the hapi ecosystem.

Affected versions of this package are vulnerable to Prototype Pollution. The utilities function allow modification of the Object prototype. If an attacker can control part of the structure passed to this function, they could add or modify an existing property.

PoC by Olivier Arteau (HoLyVieR)

var Hoek = require('hoek');
var malicious_payload = '{"__proto__":{"oops":"It works !"}}';

var a = {};
console.log("Before : " + a.oops);
Hoek.merge({}, JSON.parse(malicious_payload));
console.log("After : " + a.oops);


Upgrade hoek to versions 4.2.1, 5.0.3 or higher.