merge-anything is vulnerable to Prototype Pollution
48
Medium Risk
Affected versions of this package are vulnerable to prototype pollution, allowing an attacker to inject properties such as isAdmin into an object's prototype when merging an object containing a __proto__ property using the mergeRecursively function of the merge-anything library. This can lead to unauthorized access, privilege escalation, and unpredictable application behavior due to bypassed permission checks. To mitigate this issue, applications should explicitly filter out keys like __proto__, prototype, and constructor. Given the library's widespread usage, multiple use cases may be affected by this vulnerability.
You are affected if you are using a version that falls within the vulnerable range.
merge-anything is vulnerable to Prototype Pollution in versions 5.1.0 - 6.0.4.
Upgrade the merge-anything library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

SOC 2Compliant
ISO 27001Compliant