CVE-2021-23397
JavaScript vulnerability analysis and mitigation

Overview

CVE-2021-23397 affects all versions of the npm package @ianwalter/merge. The vulnerability was discovered and disclosed on June 17, 2021, and published on June 18, 2021. This security issue involves a Prototype Pollution vulnerability in the main (merge) function of the package (Snyk Report).

Technical details

The vulnerability is classified as a Prototype Pollution issue (CWE-1321) that occurs in the package's main merge function. The CVSS base score is rated as 5.6 (medium) according to Snyk's assessment, while the NVD rates it at 9.8 (critical). The vulnerability allows an attacker to manipulate JavaScript object prototypes through the recursive merge functionality (Snyk Report).

Impact

The vulnerability can lead to several types of attacks: Denial of Service (DoS) by manipulating object properties like toString and valueOf, potential Remote Code Execution if the codebase evaluates and executes specific object attributes, and Property Injection where attackers can pollute security-critical properties such as authentication or authorization flags (Snyk Report).

Mitigation and workarounds

There is no fixed version available for @ianwalter/merge. The maintainer recommends switching to @generates/merger as an alternative. Additional recommended preventive measures include freezing the prototype using Object.freeze(Object.prototype), implementing JSON input schema validation, avoiding unsafe recursive merge functions, and considering the use of objects without prototypes or using 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-2026-23947CRITICAL9.3
  • JavaScriptJavaScript
  • @orval/core
NoYesJan 20, 2026
CVE-2026-23950HIGH8.8
  • JavaScriptJavaScript
  • grafana-graphite
NoYesJan 20, 2026
CVE-2026-22037HIGH8.4
  • JavaScriptJavaScript
  • @fastify/express
NoYesJan 19, 2026
CVE-2026-23522LOW3.7
  • JavaScriptJavaScript
  • @lobehub/chat
NoNoJan 19, 2026
CVE-2025-66803LOW1.7
  • JavaScriptJavaScript
  • @hotwired/turbo
NoYesJan 20, 2026

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