CVE-2018-3728Hapijs Hoek
High 8.8
Follow: this CVE · Hapijs · Hapijs Hoek We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.0
- 8.8
- EPSS
- 4.2% probability of exploitation in 30 days · percentile 92
- Auth required
- Yes
- Published
- Mar 30, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-471
- Vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Hoek.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | hoek |
≥ 5.0.0 < 5.0.3 |
5.0.3 |
npm install hoek@5.0.3 |
| npm | hoek |
< 4.2.1 |
4.2.1 |
npm install hoek@4.2.1 |
Per OSV / GitHub Advisories (GHSA-jp4x-w63m-7wgm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| hapijs | hoek | < 4.2.0 |
| hapijs | hoek | ≥ 5.0.0 < 5.0.3 |
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- access.redhat.com Third Party Advisory
- access.redhat.com Third Party Advisory
- github.com Patch Third Party Advisory
- hackerone.com Exploit Third Party Advisory
- nodesecurity.io Broken Link
- snyk.io Exploit Patch Third Party Advisory