Affected versions of this package are vulnerable to Prototype Pollution where the merge is invoked in M function unsafely
Since the infected e argument with proto object missing check if it resolves to the object prototype, the malicious property are then copied on the Object prototype by the merge operation to the empty object and recursively affected all the objects in the program.
Overview
Affected versions of this package are vulnerable to Prototype Pollution where the merge is invoked in M function unsafely Since the infected e argument with proto object missing check if it resolves to the object prototype, the malicious property are then copied on the Object prototype by the merge operation to the empty object and recursively affected all the objects in the program.
PoC
Output:
Output of a successful fix:
How to prevent:
Refer to the recommendations in this article Snyk.io