{"id":"GHSA-c429-5p7v-vgjp","summary":"hoek subject to prototype pollution via the clone function.","details":"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.","aliases":["CVE-2020-36604"],"modified":"2026-07-17T21:12:10.424192464Z","published":"2022-09-25T00:00:27Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-09-29T14:13:31Z","nvd_published_at":"2022-09-23T06:15:00Z","cwe_ids":["CWE-1321"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36604"},{"type":"WEB","url":"https://github.com/hapijs/hoek/issues/352"},{"type":"WEB","url":"https://github.com/hapijs/hoek/commit/4d0804bc6135ad72afdc5e1ec002b935b2f5216a"},{"type":"WEB","url":"https://github.com/hapijs/hoek/commit/948baf98634a5c206875b67d11368f133034fa90"}],"affected":[{"package":{"name":"@hapi/hoek","ecosystem":"npm","purl":"pkg:npm/%40hapi/hoek"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"8.5.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-c429-5p7v-vgjp/GHSA-c429-5p7v-vgjp.json"}},{"package":{"name":"@hapi/hoek","ecosystem":"npm","purl":"pkg:npm/%40hapi/hoek"},"ranges":[{"type":"SEMVER","events":[{"introduced":"9.0.0"},{"fixed":"9.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-c429-5p7v-vgjp/GHSA-c429-5p7v-vgjp.json"}},{"package":{"name":"hoek","ecosystem":"npm","purl":"pkg:npm/hoek"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"6.1.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-c429-5p7v-vgjp/GHSA-c429-5p7v-vgjp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}