NodeJS/hoek/4.2.0


General purpose node utilities

https://www.npmjs.com/package/hoek
BSD-3-Clause

3 Security Vulnerabilities

hoek subject to prototype pollution via the clone function.

Published date: 2022-09-25T00:00:27Z
CVE: CVE-2020-36604
Links:

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.

Affected versions: ["0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.0.10", "0.0.11", "0.0.12", "0.0.13", "0.0.14", "0.0.15", "0.0.16", "0.0.17", "0.0.18", "0.0.19", "0.0.21", "0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.10.0", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.1.0", "1.1.1", "1.1.2", "1.2.0", "1.3.0", "1.4.0", "1.4.1", "1.5.0", "1.5.1", "1.5.2", "2.0.0", "2.1.0", "2.1.1", "2.2.0", "2.3.0", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.6.0", "2.7.0", "2.8.0", "2.8.1", "2.9.0", "2.9.1", "2.10.0", "2.11.0", "2.11.1", "2.12.0", "2.13.0", "2.13.1", "2.14.0", "2.15.0", "2.16.0", "2.16.1", "2.16.2", "2.16.3", "3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "4.0.0", "4.0.1", "4.0.2", "4.1.0", "4.1.1", "4.2.0", "5.0.0", "5.0.1", "5.0.2", "5.0.3", "4.2.1", "5.0.4", "6.0.0", "6.0.1", "6.0.2", "6.0.3", "6.0.4", "6.1.1", "6.1.2", "6.1.3", "4.3.1"]
Secure versions: []

Prototype Pollution in hoek

Published date: 2018-04-26T15:25:17Z
CVE: CVE-2018-3728
Links:

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:

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.

Recommendation

Update to version 4.2.1, 5.0.3 or later.

Affected versions: ["0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.0.10", "0.0.11", "0.0.12", "0.0.13", "0.0.14", "0.0.15", "0.0.16", "0.0.17", "0.0.18", "0.0.19", "0.0.21", "0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.10.0", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.1.0", "1.1.1", "1.1.2", "1.2.0", "1.3.0", "1.4.0", "1.4.1", "1.5.0", "1.5.1", "1.5.2", "2.0.0", "2.1.0", "2.1.1", "2.2.0", "2.3.0", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.6.0", "2.7.0", "2.8.0", "2.8.1", "2.9.0", "2.9.1", "2.10.0", "2.11.0", "2.11.1", "2.12.0", "2.13.0", "2.13.1", "2.14.0", "2.15.0", "2.16.0", "2.16.1", "2.16.2", "2.16.3", "3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "4.0.0", "4.0.1", "4.0.2", "4.1.0", "4.1.1", "4.2.0", "5.0.0", "5.0.1", "5.0.2"]
Secure versions: []

hoek prototype pollution

Published date: 2018-02-12
CVEs: ["CVE-2018-3728"]
CVSS Score: 2.5
CVSS Vector: CVSS:3.0/AV:L/AC:H/PR:H/UI:R/S:U/C:N/I:N/A:L
Links:

hoek node module before 5.0.3 and before 4.2.1 suffers from a prototype pollution 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.

Affected versions: ["5.0.0", "5.0.1", "5.0.2", "0.0.1", "0.0.2", "0.0.3", "0.0.4", "0.0.5", "0.0.6", "0.0.7", "0.0.8", "0.0.9", "0.0.10", "0.0.11", "0.0.12", "0.0.13", "0.0.14", "0.0.15", "0.0.16", "0.0.17", "0.0.18", "0.0.19", "0.0.21", "0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.4.1", "0.4.2", "0.4.3", "0.4.4", "0.4.5", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.7.2", "0.7.3", "0.7.4", "0.7.5", "0.7.6", "0.8.0", "0.8.1", "0.8.2", "0.8.3", "0.8.4", "0.8.5", "0.9.0", "0.9.1", "0.10.0", "1.0.0", "1.0.1", "1.0.2", "1.0.3", "1.1.0", "1.1.1", "1.1.2", "1.2.0", "1.3.0", "1.4.0", "1.4.1", "1.5.0", "1.5.1", "1.5.2", "2.0.0", "2.1.0", "2.1.1", "2.2.0", "2.3.0", "2.4.0", "2.4.1", "2.5.0", "2.5.1", "2.6.0", "2.7.0", "2.8.0", "2.8.1", "2.9.0", "2.9.1", "2.10.0", "2.11.0", "2.11.1", "2.12.0", "2.13.0", "2.13.1", "2.14.0", "2.15.0", "2.16.0", "2.16.1", "2.16.2", "2.16.3", "3.0.0", "3.0.1", "3.0.2", "3.0.3", "3.0.4", "4.0.0", "4.0.1", "4.0.2", "4.1.0", "4.1.1", "4.2.0"]
Secure versions: []
Recommendation: Update module to 5.0.3 or 4.2.1 or higher

116 Other Versions

Version License Security Released
6.1.3 BSD-3-Clause 1 2019-03-27 - 00:32 about 5 years
6.1.2 BSD-3-Clause 1 2018-12-01 - 08:36 over 5 years
6.1.1 BSD-3-Clause 1 2018-11-28 - 22:31 over 5 years
6.0.4 BSD-3-Clause 1 2018-11-24 - 12:38 over 5 years
6.0.3 BSD-3-Clause 1 2018-11-11 - 02:30 over 5 years
6.0.2 BSD-3-Clause 1 2018-11-06 - 17:42 over 5 years
6.0.1 BSD-3-Clause 1 2018-11-03 - 00:52 over 5 years
6.0.0 BSD-3-Clause 1 2018-11-01 - 06:52 over 5 years
5.0.4 BSD-3-Clause 1 2018-08-10 - 20:34 over 5 years
5.0.3 BSD-3-Clause 1 2018-02-06 - 17:55 about 6 years
5.0.2 BSD-3-Clause 3 2017-11-03 - 09:12 over 6 years
5.0.1 BSD-3-Clause 3 2017-10-26 - 08:22 over 6 years
5.0.0 BSD-3-Clause 3 2017-09-26 - 04:22 over 6 years
4.3.1 SEE LICENSE IN LICENSE.md 1 2023-12-26 - 09:22 3 months
4.2.1 BSD-3-Clause 1 2018-02-15 - 16:47 about 6 years
4.2.0 BSD-3-Clause 3 2017-07-17 - 22:14 over 6 years
4.1.1 BSD-3-Clause 3 2017-03-31 - 19:02 almost 7 years
4.1.0 BSD-3-Clause 3 2016-09-19 - 18:31 over 7 years
4.0.2 BSD-3-Clause 3 2016-07-27 - 18:47 over 7 years
4.0.1 BSD-3-Clause 3 2016-06-01 - 17:12 almost 8 years
4.0.0 BSD-3-Clause 3 2016-04-25 - 22:50 almost 8 years
3.0.4 BSD-3-Clause 3 2015-11-14 - 21:48 over 8 years
3.0.3 BSD-3-Clause 3 2015-11-14 - 21:39 over 8 years
3.0.2 BSD-3-Clause 3 2015-11-14 - 21:28 over 8 years
3.0.1 BSD-3-Clause 3 2015-10-31 - 16:54 over 8 years
3.0.0 BSD-3-Clause 3 2015-10-30 - 19:30 over 8 years
2.16.3 BSD-3-Clause 3 2015-09-21 - 17:47 over 8 years
2.16.2 BSD-3-Clause 3 2015-09-16 - 18:31 over 8 years
2.16.1 BSD-3-Clause 3 2015-09-16 - 17:08 over 8 years
2.16.0 BSD-3-Clause 3 2015-09-15 - 22:28 over 8 years
2.15.0 BSD-3-Clause 3 2015-09-11 - 16:20 over 8 years
2.14.0 BSD-3-Clause 3 2015-05-22 - 18:14 almost 9 years
2.13.1 BSD-3-Clause 3 2015-05-22 - 17:36 almost 9 years
2.13.0 BSD 3 2015-05-04 - 20:40 almost 9 years
2.12.0 BSD 3 2015-03-24 - 17:17 about 9 years
2.11.1 BSD 3 2015-02-28 - 00:05 about 9 years
2.11.0 BSD 3 2015-01-05 - 17:30 about 9 years
2.10.0 BSD 3 2014-11-27 - 04:05 over 9 years
2.9.1 BSD 3 2014-11-26 - 22:17 over 9 years
2.9.0 BSD 3 2014-11-10 - 18:01 over 9 years
2.8.1 BSD 3 2014-10-23 - 18:15 over 9 years
2.8.0 BSD 3 2014-10-20 - 16:21 over 9 years
2.7.0 BSD 3 2014-10-17 - 18:02 over 9 years
2.6.0 BSD 3 2014-10-14 - 16:58 over 9 years
2.5.1 BSD 3 2014-10-10 - 21:01 over 9 years
2.5.0 BSD 3 2014-10-01 - 20:59 over 9 years
2.4.1 BSD 3 2014-08-04 - 23:25 over 9 years
2.4.0 BSD 3 2014-08-02 - 07:04 over 9 years
2.3.0 BSD 3 2014-05-29 - 19:31 almost 10 years
2.2.0 BSD 3 2014-05-26 - 18:19 almost 10 years
2.1.1 BSD 3 2014-05-20 - 03:53 almost 10 years
2.1.0 BSD 3 2014-04-22 - 22:20 almost 10 years
2.0.0 BSD 3 2014-04-07 - 22:10 almost 10 years
1.5.2 BSD 3 2014-03-19 - 19:03 about 10 years
1.5.1 BSD 3 2014-03-06 - 22:41 about 10 years
1.5.0 BSD 3 2014-02-22 - 23:35 about 10 years
1.4.1 BSD 3 2014-01-05 - 22:17 about 10 years
1.4.0 BSD 3 2013-12-30 - 18:03 about 10 years
1.3.0 BSD 3 2013-12-22 - 20:38 over 10 years
1.2.0 BSD 3 2013-11-21 - 21:36 over 10 years
1.1.2 BSD 3 2013-11-06 - 23:59 over 10 years
1.1.1 BSD 3 2013-10-01 - 23:08 over 10 years
1.1.0 BSD 3 2013-09-29 - 21:39 over 10 years
1.0.3 BSD 3 2013-09-10 - 07:21 over 10 years
1.0.2 BSD 3 2013-09-10 - 07:12 over 10 years
1.0.1 BSD 3 2013-09-10 - 02:02 over 10 years
1.0.0 BSD 3 2013-08-20 - 18:25 over 10 years
0.10.0 BSD 3 2013-08-20 - 06:23 over 10 years
0.9.1 BSD 3 2013-05-15 - 21:35 almost 11 years
0.9.0 BSD 3 2013-05-15 - 21:30 almost 11 years
0.8.5 BSD 3 2013-05-04 - 16:52 almost 11 years
0.8.4 BSD 3 2013-04-30 - 21:06 almost 11 years
0.8.3 BSD 3 2013-04-29 - 19:04 almost 11 years
0.8.2 BSD 3 2013-04-26 - 06:46 almost 11 years
0.8.1 BSD 3 2013-04-07 - 03:20 almost 11 years
0.8.0 BSD 3 2013-04-05 - 19:35 almost 11 years
0.7.6 BSD 3 2013-04-04 - 23:12 almost 11 years
0.7.5 BSD 3 2013-04-02 - 17:18 almost 11 years
0.7.4 BSD 3 2013-04-01 - 19:15 almost 11 years
0.7.3 BSD 3 2013-03-30 - 17:55 almost 11 years
0.7.2 BSD 3 2013-03-29 - 21:53 almost 11 years
0.7.1 BSD 3 2013-03-18 - 17:25 about 11 years
0.7.0 BSD 3 2013-03-13 - 18:23 about 11 years
0.6.2 BSD 3 2013-03-05 - 23:38 about 11 years
0.6.1 BSD 3 2013-03-05 - 07:05 about 11 years
0.6.0 BSD 3 2013-03-01 - 19:34 about 11 years
0.5.0 BSD 3 2013-02-25 - 23:39 about 11 years
0.4.5 BSD 3 2013-02-20 - 01:29 about 11 years
0.4.4 BSD 3 2013-02-17 - 02:45 about 11 years
0.4.3 BSD 3 2013-02-17 - 02:04 about 11 years
0.4.2 BSD 3 2013-02-08 - 08:14 about 11 years
0.4.1 BSD 3 2013-02-07 - 19:22 about 11 years
0.4.0 BSD 3 2013-02-05 - 07:15 about 11 years
0.3.0 BSD 3 2013-02-01 - 07:23 about 11 years
0.2.0 BSD 3 2013-01-31 - 17:06 about 11 years
0.1.0 BSD 3 2013-01-25 - 18:47 about 11 years
0.0.21 BSD 3 2013-01-02 - 03:39 about 11 years
0.0.19 BSD 3 2012-12-06 - 08:30 over 11 years
0.0.18 BSD 3 2012-12-04 - 07:38 over 11 years
0.0.17 BSD 3 2012-12-03 - 05:59 over 11 years