CVE-2018-3728
HIGH 8.8CVSS 3.0Prototype Pollution in hoek
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.
- Published
- 30 Mar 2018
- Last modified
- 17 Jun 2026
- Assigned by
- support@hackerone.com
- NVD status
- Modified
- Weakness
- CWE-1321CWE-471
- Also known as
- GHSA-jp4x-w63m-7wgm
- Sources
- NVDJSONOSV GHSA-jp4x-w63m-7wgmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.8 | CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hapijs | hoekcpe:2.3:a:hapijs:hoek:*:*:*:*:*:node.js:*:* |
< 4.2.0 | 4.2.0 |
| NVD | hapijs | hoekcpe:2.3:a:hapijs:hoek:*:*:*:*:*:node.js:*:* |
>= 5.0.0, < 5.0.3 | 5.0.3 |
| OSV | npm | hoek | >= 5.0.0, < 5.0.3 | 5.0.3 |
| OSV | npm | hoek | < 4.2.1 | 4.2.1 |
References
- http://www.securityfocus.com/bid/103108 · Third Party Advisory, VDB Entry
- https://access.redhat.com/errata/RHSA-2018:1263 · Third Party Advisory, WEB
- https://access.redhat.com/errata/RHSA-2018:1264 · Third Party Advisory, WEB
- https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee · Patch, Third Party Advisory, WEB
- https://hackerone.com/reports/310439 · Exploit, Third Party Advisory, WEB
- https://nodesecurity.io/advisories/566 · Broken Link
- https://snyk.io/vuln/npm:hoek:20180212 · Exploit, Patch, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-3728 · ADVISORY
- https://github.com/hapijs/hoek/commit/5aed1a8c4a3d55722d1c799f2368857bf418d6df · WEB
- https://github.com/hapijs/hoek · PACKAGE
- https://web.archive.org/web/20200227131737/https://www.securityfocus.com/bid/103108 · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 30 Mar 2018)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 26 Apr 2018)