Files
node/tools
Antoine du Hamel 2f27d058c2 esm: protect ESM loader from prototype pollution
In a previous commit, the loader implementation was modified to be
protected against most prototype pollution, but was kept vulnerable to
`Array.prototype` pollution. This commit fixes that, the tradeoff is
that it modifies the `ESMLoader.prototype.import` return type from an
`Array` to an array-like object.

Refs: https://github.com/nodejs/node/pull/45044
PR-URL: https://github.com/nodejs/node/pull/45175
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
2023-01-03 08:38:26 -05:00
..
2022-07-12 07:41:29 +02:00
2023-01-03 08:38:14 -05:00
2022-09-26 19:07:42 -03:00
2023-01-03 08:38:25 -05:00
…
2021-10-04 10:09:06 +00:00
2020-12-16 23:45:26 +01:00
2022-09-23 15:11:09 -03:00
2022-07-12 07:41:29 +02:00
2022-04-28 06:56:08 +02:00
2021-08-25 07:55:32 -07:00
…
2022-09-26 19:07:41 -03:00
2022-05-02 14:39:34 +02:00