What’s Vulnerable › Vulnerabilities
CVE-2018-3728: Prototype Pollution in hoek
- Severity: high (CVSS 8.8 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 4.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2018-03-30 · updated 2026-06-17
- Weakness: CWE-471
Description
hoek node module before 4.2.0 and 5.0.x before 5.0.3 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via 'merge' and 'applyToDefaults' functions, which allows a malicious user to modify the prototype of "Object" via __proto__, causing the addition or modification of an existing property that will exist on all objects.
Affected products
- hapi hoek node module: before 4.2.0; from 5.0.0 before 5.0.3 — fixed in 4.2.0, 5.0.3
- Npm Hoek: from 5.0.0 before 5.0.3; before 4.2.1 — fixed in 5.0.3, 4.2.1
How to fix
Upgrade to a fixed version: hapi hoek node module 4.2.0, 5.0.3; Npm Hoek 5.0.3, 4.2.1. Check the vendor advisory for mitigations.
References
- http://www.securityfocus.com/bid/103108
- https://access.redhat.com/errata/RHSA-2018:1263
- https://access.redhat.com/errata/RHSA-2018:1264
- https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee
- https://hackerone.com/reports/310439
- https://nodesecurity.io/advisories/566
- https://snyk.io/vuln/npm:hoek:20180212
- http://www.securityfocus.com/bid/103108
- https://access.redhat.com/errata/RHSA-2018:1263
- https://access.redhat.com/errata/RHSA-2018:1264
- https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee
- https://hackerone.com/reports/310439
Get alerted when CVE-2018-3728 or the next vulnerability affects your stack