Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:npm/hoek@2.16.2
purl pkg:npm/hoek@2.16.2
Next non-vulnerable version None.
Latest non-vulnerable version None.
Risk 4.0
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-f9fx-rs6v-x7d4
Aliases:
CVE-2020-36604
GHSA-c429-5p7v-vgjp
hoek subject to prototype pollution via the clone function. hoek versions prior to 8.5.1, and 9.x prior to 9.0.3 are vulnerable to prototype pollution in the clone function. If an object with the __proto__ key is passed to clone() the key is converted to a prototype. This issue has been patched in version 9.0.3, and backported to 8.5.1. There are no reported fixed by versions.
VCID-yk3z-5fjt-q7gb
Aliases:
CVE-2018-3728
GHSA-jp4x-w63m-7wgm
Prototype Pollution in hoek Versions of `hoek` prior to 4.2.1 and 5.0.3 are vulnerable to prototype pollution. The `merge` function, and the `applyToDefaults` and `applyToDefaultsWithShallow` functions which leverage `merge` behind the scenes, are vulnerable to a prototype pollution attack when provided an _unvalidated_ payload created from a JSON string containing the `__proto__` property. This can be demonstrated like so: ```javascript var Hoek = require('hoek'); var malicious_payload = '{"__proto__":{"oops":"It works !"}}'; var a = {}; console.log("Before : " + a.oops); Hoek.merge({}, JSON.parse(malicious_payload)); console.log("After : " + a.oops); ``` This type of attack can be used to overwrite existing properties causing a potential denial of service.
4.2.1
Affected by 1 other vulnerability.
5.0.3
Affected by 1 other vulnerability.
Vulnerabilities fixed by this package (0)
Vulnerability Summary Aliases
This package is not known to fix vulnerabilities.

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-16T22:11:14.383300+00:00 GitLab Importer Affected by VCID-f9fx-rs6v-x7d4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2020-36604.yml 38.4.0
2026-04-16T20:42:45.405362+00:00 GitLab Importer Affected by VCID-yk3z-5fjt-q7gb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2018-3728.yml 38.4.0
2026-04-11T23:27:58.582941+00:00 GitLab Importer Affected by VCID-f9fx-rs6v-x7d4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2020-36604.yml 38.3.0
2026-04-11T21:53:22.776054+00:00 GitLab Importer Affected by VCID-yk3z-5fjt-q7gb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2018-3728.yml 38.3.0
2026-04-02T23:33:48.208096+00:00 GitLab Importer Affected by VCID-f9fx-rs6v-x7d4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2020-36604.yml 38.1.0
2026-04-02T22:07:06.655529+00:00 GitLab Importer Affected by VCID-yk3z-5fjt-q7gb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2018-3728.yml 38.1.0
2026-04-01T17:55:43.189978+00:00 GitLab Importer Affected by VCID-f9fx-rs6v-x7d4 https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2020-36604.yml 38.0.0
2026-04-01T16:24:10.389607+00:00 GitLab Importer Affected by VCID-yk3z-5fjt-q7gb https://gitlab.com/gitlab-org/advisories-community/-/blob/main/npm/hoek/CVE-2018-3728.yml 38.0.0