CVE-2018-3728
hapi hoek node module: Modification of Assumed-Immutable Data (MAID)
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.
Exploitation
EPSS 4.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 91.6% of all scored CVEs. Scores of 26 Nov 2026.
Weakness
- CWE-471 Modification of Assumed-Immutable Data (MAID)
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| hoek node module |
affected Versions before 5.0.3
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2018-3728 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2018-3728RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2018-3728Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-3728
trivy image --scanners vuln IMAGE | grep CVE-2018-3728
PatchBrief makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Install the agent.
References
Advisories
- https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee github.com
- RHSA-2018:1264 access.redhat.com · vendor advisory
- RHSA-2018:1263 access.redhat.com · vendor advisory
- https://nodesecurity.io/advisories/566 nodesecurity.io
Other references
- https://hackerone.com/reports/310439 hackerone.com
- 103108 securityfocus.com · vdb entry
- https://snyk.io/vuln/npm:hoek:20180212 snyk.io
Source: the record CVE-2018-3728 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.