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.
Remediation
References
https://hackerone.com/reports/310439
https://github.com/hapijs/hoek/commit/32ed5c9413321fbc37da5ca81a7cbab693786dee
http://www.securityfocus.com/bid/103108
https://snyk.io/vuln/npm:hoek:20180212
https://nodesecurity.io/advisories/566
https://access.redhat.com/errata/RHSA-2018:1263
https://access.redhat.com/errata/RHSA-2018:1264
Related Vulnerabilities
CVE-2020-28500 Vulnerability in maven package org.webjars.npm:lodash
CVE-2020-14060 Vulnerability in maven package com.fasterxml.jackson.core:jackson-databind
CVE-2022-31089 Vulnerability in npm package parse-server
CVE-2019-10783 Vulnerability in npm package lsof
CVE-2015-1833 Vulnerability in maven package org.apache.jackrabbit:jackrabbit-webdav