Prototype Pollution
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.
| Package | Affected versions | Patched versions |
|---|---|---|
combnpm | <= 2.0.0 | — |
Affected products
2- comb/combdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
3- github.com/advisories/GHSA-vxr4-rxw7-g7v6ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-23561ghsaADVISORY
- snyk.io/vuln/SNYK-JS-COMB-1730083ghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.