Live threats

All CVEs / Hapijs

CVE-2018-3728Hapijs Hoek

High 8.8

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hoek.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
hapijshoek< 4.2.0
hapijshoek≥ 5.0.0 < 5.0.3

Official sources

References

Links published by the sources. Open them with care.