CVE-2021-23561
JavaScript vulnerability analysis and mitigation

Overview

All versions of package comb are vulnerable to Prototype Pollution via the deepMerge() function. The vulnerability was discovered and disclosed on October 11, 2021, and was assigned CVE-2021-23561. This security issue affects the comb framework for Node.js (Snyk Report).

Technical details

The vulnerability exists in the deepMerge() function of the comb package, which allows for Prototype Pollution through unsafe recursive merge operations. When the source object contains a property named proto defined with Object.defineProperty(), the merge operation can be exploited to copy properties onto the Object prototype. The vulnerability has been assigned a CVSS v3.1 score of 6.5 (medium severity), with attack vector being Network, attack complexity Low, requiring no privileges or user interaction (Snyk Report).

Impact

Successful exploitation of this vulnerability can lead to Denial of Service (DoS) by triggering JavaScript exceptions, property injection, and potentially remote code execution. The attacker can manipulate object prototypes to overwrite or pollute JavaScript application object prototypes of the base object by injecting other values. This can result in either application crashes or tampering with the application source code to force unintended code execution paths (Snyk Report).

Mitigation and workarounds

There is no fixed version available for the comb package. To mitigate the risk, developers should: freeze the prototype using Object.freeze(Object.prototype), implement schema validation for JSON input, avoid using unsafe recursive merge functions, consider using objects without prototypes (Object.create(null)), and as a best practice, use Map instead of Object (Snyk Report).

Additional resources


SourceThis report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-55182CRITICAL10
  • JavaScriptJavaScript
  • react-server-dom-webpack
NoYesDec 03, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-66412HIGH8.5
  • JavaScriptJavaScript
  • @angular/compiler
NoYesDec 01, 2025
CVE-2025-66415MEDIUM6.9
  • JavaScriptJavaScript
  • @fastify/reply-from
NoYesDec 01, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management