CVE-2022-25907
JavaScript vulnerability analysis and mitigation

Overview

The package ts-deepmerge before version 2.0.2 was discovered to contain a Prototype Pollution vulnerability due to missing sanitization of the merge function (NVD, Snyk). The vulnerability was disclosed on July 25, 2022 and published on August 8, 2022.

Technical details

The vulnerability exists in the merge function which lacks proper input sanitization, allowing manipulation of JavaScript language construct prototypes. An attacker can inject properties into existing objects through the proto attribute, which gets inherited by all JavaScript objects through the prototype chain. The vulnerability has a CVSS v3.1 base score of 7.5 (High) with Network attack vector, Low attack complexity, and No privileges required (Snyk).

Impact

Successful exploitation of this vulnerability could lead to denial of service by triggering JavaScript exceptions, or potentially remote code execution by tampering with the application source code to force specific code paths. The vulnerability could also enable property injection attacks where an attacker pollutes properties that the codebase relies on for security-critical information (Snyk).

Mitigation and workarounds

The vulnerability was patched in version 2.0.2 by adding safeguards against prototype pollution. Users should upgrade to version 2.0.2 or higher. Alternative mitigation strategies include freezing the prototype using Object.freeze(Object.prototype), requiring schema validation of JSON input, avoiding unsafe recursive merge functions, using objects without prototypes, or using Map instead of Object (Snyk, GitHub Release).

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-23744CRITICAL9.8
  • JavaScriptJavaScript
  • @mcpjam/inspector
NoYesJan 16, 2026
CVE-2026-23735HIGH8.7
  • JavaScriptJavaScript
  • graphql-modules
NoYesJan 16, 2026
GHSA-gw32-9rmw-qwwwHIGH8.4
  • JavaScriptJavaScript
  • svelte
NoYesJan 16, 2026
CVE-2026-23745HIGH8.2
  • JavaScriptJavaScript
  • argo-workflows-fips-3.6
NoYesJan 16, 2026
GHSA-38cw-85xc-xr9xMEDIUM6.8
  • JavaScriptJavaScript
  • @veramo/data-store
NoYesJan 16, 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