CVE-2018-3728
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.
Severity
HIGH
CVSS v3
8.8
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
4.190%
chance of exploitation in the next 30 days
higher than 91.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-471: Modification of Assumed-Immutable Data (MAID)
Timeline
- 2018-03-30Published by the CNA19:00 UTC
- 2018-04-26GitHub advisory published (GHSA-jp4x-w63m-7wgm)27 days after publication
Exploit and advisory records
GitHub advisory GHSA-jp4x-w63m-7wgm, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm hoek | before 4.2.1 | 4.2.1 |
| npm hoek | from 5.0.0 before 5.0.3 | 5.0.3 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| hapijs hoek | before 4.2.0fixed in 4.2.0from 5.0.0 before 5.0.3fixed in 5.0.3 | 4.2.05.0.3 |
References
- https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee
- https://snyk.io/vuln/npm:hoek:20180212
- https://access.redhat.com/errata/RHSA-2018:1263
- https://access.redhat.com/errata/RHSA-2018:1264
- https://hackerone.com/reports/310439
- http://www.securityfocus.com/bid/103108
- https://nodesecurity.io/advisories/566
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-3728'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-3728'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-3728'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-3728'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).