NodeJS/hoek/0.0.18


General purpose node utilities

https://www.npmjs.com/package/hoek
BSD

2 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: []

116 Other Versions

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