Vulnerability DatabaseGHSA-rc4v-99cr-pjcm

GHSA-rc4v-99cr-pjcm
JavaScript vulnerability analysis and mitigation

Overview

A critical prototype pollution vulnerability was discovered in the mongoose package (GHSA-rc4v-99cr-pjcm), affecting versions <5.13.20, >=6.0.0-rc0 <6.11.3, and >=7.0.0-rc0 <7.3.4. The vulnerability was published and disclosed on July 17, 2023, and was discovered by Larry Yuan. This security issue affects the document.js component of mongoose, which is a MongoDB object modeling tool designed for asynchronous environments (GitHub Advisory, Snyk Report).

Technical details

The vulnerability exists in document.js and can be exploited through update functions such as findByIdAndUpdate(). The issue received a CVSS score of 10.0 (Critical), with attack vector being Network, attack complexity Low, requiring no privileges or user interaction. The vulnerability is classified under CWE-1321 and allows for prototype pollution through manipulation of document properties (GitHub Advisory, Snyk Report).

Impact

The vulnerability's impact is particularly severe for applications using Express and EJS, potentially enabling remote code execution. When successfully exploited, it can lead to prototype pollution, allowing attackers to inject properties into existing JavaScript language construct prototypes. This can result in denial of service through JavaScript exceptions or enable tampering with application source code, potentially leading to remote code execution (Snyk Report).

Mitigation and workarounds

The vulnerability has been patched in mongoose versions 5.13.20, 6.11.3, and 7.3.4. Users are strongly advised to upgrade to these or higher versions. For the @seal-security/mongoose-fixed package, version 5.3.4 has been deployed to address this issue (GitHub Advisory).

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-65959HIGH8.7
  • JavaScriptJavaScript
  • open-webui
NoYesDec 04, 2025
CVE-2025-66032HIGH8.7
  • JavaScriptJavaScript
  • @anthropic-ai/claude-code
NoYesDec 03, 2025
CVE-2025-65945HIGH7.5
  • JavaScriptJavaScript
  • jws
NoYesDec 04, 2025
CVE-2025-66404MEDIUM6.4
  • JavaScriptJavaScript
  • mcp-server-kubernetes
NoYesDec 03, 2025
CVE-2025-66479LOW1.8
  • JavaScriptJavaScript
  • @anthropic-ai/sandbox-runtime
NoYesDec 04, 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