CVE-2021-25916
JavaScript vulnerability analysis and mitigation

Overview

Prototype pollution vulnerability in 'patchmerge' versions 1.0.0 through 1.0.1 was discovered, which allows an attacker to cause a denial of service and potentially lead to remote code execution. The vulnerability was disclosed on March 16, 2021, affecting the NPM module 'patchmerge' (NVD, Mend Database).

Technical details

The vulnerability stems from the module's failure to validate object types before property assignment. The module accepts two arguments 'original' and 'patch', and due to the absence of validation on values passed into the 'patch' argument, attackers can supply malicious values by including the 'proto' property. This allows direct property assignment to empty objects, thereby polluting the Object prototype. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability can lead to denial of service conditions and potentially remote code execution. When exploited, it allows attackers to create non-existent properties or manipulate existing properties in the Object prototype, which can affect the behavior of the application using the module (Mend Database).

Mitigation and workarounds

The recommended mitigation is to upgrade to version 1.0.2 of the patchmerge module. A fix has been implemented that prevents inadvertent modification of Object.prototype by substituting an empty object when attempting to modify the prototype (GitHub Patch).

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-71476HIGH8.7
  • JavaScript logoJavaScript
  • @nx/gcs-cache
NoYesAug 06, 2026
CVE-2026-71437MEDIUM6.5
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026
CVE-2026-71439MEDIUM5.3
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 2026
CVE-2026-71498MEDIUM5.1
  • JavaScript logoJavaScript
  • re2
NoYesAug 06, 2026
CVE-2026-71438LOW2.4
  • JavaScript logoJavaScript
  • mermaid
NoYesAug 06, 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