VYPR
Moderate severityNVD Advisory· Published Dec 10, 2021· Updated Sep 17, 2024

Prototype Pollution

CVE-2021-23561

Description

The 'comb' npm package is vulnerable to Prototype Pollution in its deepMerge() function, allowing attackers to inject properties into Object.prototype.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

The 'comb' npm package is vulnerable to Prototype Pollution in its deepMerge() function, allowing attackers to inject properties into Object.prototype.

Vulnerability

The comb npm package (all versions) is vulnerable to Prototype Pollution via the deepMerge() function [1][2]. The function performs an unsafe recursive merge of objects without proper sanitization of __proto__, constructor, or prototype keys, allowing an attacker to pollute the global Object.prototype [2].

Exploitation

An attacker can exploit this by providing a crafted object with a __proto__ property containing malicious properties to any function that uses deepMerge(). No authentication or special privileges are required; the attacker only needs to supply input that triggers the merge operation [2]. The merge recurses into __proto__, copying attacker-controlled properties onto Object.prototype.

Impact

Successful exploitation leads to Prototype Pollution, which can cause denial of service (via JavaScript exceptions) or, in certain application contexts, remote code execution if the polluted properties affect application logic [2]. The impact depends on how the application uses the polluted prototypes.

Mitigation

No official fix has been released; the repository was archived on December 20, 2023, and is read-only [3]. Users should migrate to an alternative library that does not have this vulnerability. As a workaround, avoid using deepMerge() with untrusted input, or implement input validation to block __proto__ keys.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
combnpm
<= 2.0.0

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

3

News mentions

0

No linked articles in our index yet.