defaults-deep
defaults-deep copied to clipboard
Address Prototype Pollution vulnerability
TL;DR
This vulnerability exposes language construct prototypes to unwanted modifications
defaultsDeep(
{},
{ constructor: { prototype: { isAdmin: true } } }
);
console.log({}.isAdmin); // true for all objects now
Further reading:
Open reports:
@jonschlinkert It there any hope to release this security patch?