CVE-2026-137089 in merge-deep-composedinfo

Summary

by MITRE • 11/25/2026

merge-deep-composed before 0.1.6 contains a prototype pollution vulnerability in _mergeDeepOne() that allows remote attackers to modify Object.prototype by supplying __proto__ keys. Attackers can pass JSON-parsed input containing __proto__ as a merge source to inject inherited properties, causing logic bypass or denial of service in Node.js processes.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 11/28/2026

The vulnerability identified in the merge-deep-composed library through version 0.1.4 represents a critical prototype pollution flaw within its internal mergeDeepOne() function. This issue stems from an insufficient validation mechanism when processing input objects, specifically allowing attackers to manipulate JavaScript object prototypes by supplying keys named __proto_. In Node.js environments, where JSON parsing is commonly used to process incoming data, this vulnerability can be triggered if the parsed JSON contains a property with the key name _proto_. When such input is passed as a merge source, the library incorrectly merges these properties into the target object's prototype chain rather than treating them as standard enumerable properties. This behavior deviates from safe coding practices and exposes applications to severe security risks associated with modifying global or shared object structures.

From a technical perspective, this flaw aligns closely with CWE-1325: Incorrect Check of Uniqueness of Structure Elements in Prototype Chain and is categorized under the broader class of CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes. The core issue lies in how JavaScript engines handle property assignment on objects that inherit from Object.prototype. By injecting a _proto_ key, an attacker can effectively alter the prototype chain for all subsequent object instantiations within the same execution context. This is particularly dangerous because it affects not just the immediate application logic but potentially other modules or libraries running in the same Node.js process. The vulnerability exploits the default behavior of many merge utilities that do not explicitly check for and block _proto_ keys, assuming they are safe to copy over during deep merging operations.

The operational impact of this prototype pollution is significant and multifaceted. Attackers can leverage this flaw to bypass authentication or authorization logic by injecting properties such as isAdmin or role into the Object.prototype, thereby granting elevated privileges to all users who instantiate objects after the payload has been processed. Furthermore, denial of service attacks are possible if an attacker injects malicious methods that cause infinite loops or excessive memory consumption when accessed. Since Node.js is single-threaded and event-driven, a successful exploitation can degrade performance for all connected clients by consuming critical resources through malformed object structures. This makes the vulnerability not only a confidentiality and integrity risk but also a substantial availability threat to production systems relying on this library for data transformation tasks.

Mitigation strategies must prioritize immediate remediation of the affected dependency version. Upgrading merge-deep-composed to a patched version that explicitly sanitizes _proto_ keys is the primary recommendation. For applications unable to upgrade immediately, developers should implement custom input validation layers that strip or reject any object properties containing reserved prototype names such as _proto_, constructor, and prototype before passing data to the merge function. Additionally, using JSON.parse with a reviver function can help detect and neutralize these malicious keys during parsing. It is also advisable to review other third-party libraries in the dependency tree for similar patterns of unsafe merging or object manipulation. Adhering to secure coding guidelines that emphasize strict input validation and avoiding dynamic property assignment on prototypes will significantly reduce the attack surface associated with prototype pollution vulnerabilities.

Responsible

VulnCheck

Reservation

11/25/2026

Disclosure

11/25/2026

Moderation

accepted

CPE

ready

EPSS

0.00702

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!