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.
Vulnerability type
CWE-471
Modification of Assumed-Immutable Data (MAID)
The product does not properly protect an assumed-immutable element from being modified by an attacker.
Impact on systems
| Scope | Impact |
| Integrity |
Modify Application Data Common data types that are attacked are environment variables, web application parameters, and HTTP headers. |
| Integrity |
Unexpected State |
How to prevent it
Architecture and Design · Operation · Implementation
When the data is stored or transmitted through untrusted sources that could modify the data, implement integrity checks to detect unauthorized modification, or store/transmit the data in a trusted location that is free from external influence.
All 31 CWE-471 CVEs, with trend and prevention