CVE-2018-3728
Prototype Pollution in hoek
Reported by hackerone · Published March 30, 2018
hoek is fixed in 5.0.3 and 4.2.1 (npm)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| hoek | npm | 5.0.3, 4.2.1 |
| hoek | hapijs | 5.0.3, 4.2.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| hapi | hoek node module | Versions before 5.0.3 |
| hapijs | hoek | |
| npm | hoek | 5.0.0, 0 |
| hapi | hoek node module | 5.0.3 |
Timeline
- Feb 13, 2018 PoC Published
- Mar 30, 2018 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (3 in total, the first dated here)
- Sep 20, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2018-3728
vulnetix vdb fixes CVE-2018-3728
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2018-3728/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- x_refsource_CONFIRM
- x_refsource_MISC
- 103108 vdb-entryx_refsource_BID
- RHSA-2018:1264 vendor-advisoryx_refsource_REDHAT
- RHSA-2018:1263 vendor-advisoryx_refsource_REDHAT
- x_refsource_MISC
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2018-3728 advisory
- https://github.com/advisories/GHSA-jp4x-w63m-7wgm advisory
- https://github.com/hapijs/hoek/commit/5aed1a8c4a3d55722d1c799f2368857bf418d6df patch
- https://github.com/hapijs/hoek url
- https://web.archive.org/web/20200227131737/https://www.securityfocus.com/bid/103108 url