
Cloud Vulnerability DB
A community-led vulnerabilities database
Mongoose before version 8.8.3 contains a search injection vulnerability (CVE-2024-53900) that was discovered in December 2024. The vulnerability affects the MongoDB object modeling tool's handling of the $where operator in match queries. This security issue impacts multiple versions of Mongoose including versions >= 8.0.0-rc0 < 8.8.3, >= 7.0.0-rc0 < 7.8.3, and < 6.13.5 (GitHub Advisory).
The vulnerability stems from improper handling of the $where operator in match queries. The $where clause can execute arbitrary JavaScript code in MongoDB queries, which could lead to code injection attacks. The issue has a CVSS v3.1 base score of 9.1 (Critical) with a vector string of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, indicating a high-severity vulnerability that can be exploited remotely without requiring privileges or user interaction (SecurityWeek).
The vulnerability could potentially lead to code injection attacks and unauthorized access or manipulation of database data. When successfully exploited, an attacker could execute arbitrary JavaScript code through MongoDB queries, potentially compromising the security of the application (GitHub Advisory, SecurityWeek).
The vulnerability has been patched in Mongoose versions 8.8.3, 7.8.3, and 6.13.5. Users are strongly advised to upgrade to these or later versions. The fix involves adding a check to disallow passing the $where operator to the vulnerable function, thus preventing the execution of malicious payloads (SecurityWeek).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."