Intel

AIKIDO-2025-10176

merge-anything is vulnerable to Prototype Pollution

Prototype Pollution Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Mar 25, 2025

48

Medium Risk

This Affects:

JSmerge-anything
5.1.0 - 6.0.4
Fixed in 6.0.5
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

merge-anything is vulnerable to Prototype Pollution in versions 5.1.0 - 6.0.4.

How to fix this

Upgrade the merge-anything library to the patch version.