
Cloud Vulnerability DB
A community-led vulnerabilities database
A high-severity NoSQL Injection vulnerability was identified in loopback-connector-mongodb versions prior to 3.6.0. The vulnerability was published to the GitHub Advisory Database on September 2, 2020, and last updated on January 9, 2023. The issue affects the MongoDB connector for the LoopBack framework, specifically impacting versions 3.5.0 and earlier (GitHub Advisory).
The vulnerability stems from improper sanitization of filters passed to database queries, which could lead to code execution on the database driver and potential data leaks. The issue is classified under CWE-89 (SQL Injection) despite being a NoSQL variant. The vulnerability has been assigned the identifier GHSA-hxwc-5vw9-2w4w, though no CVE ID has been associated with it (GitHub Advisory).
The vulnerability could allow attackers to execute arbitrary code on the database driver and potentially lead to unauthorized data access or leakage. The MongoDB Driver's $where operator could be exploited to execute JavaScript on the Driver, making it particularly dangerous for NoSQL injection attacks (LoopBack MongoDB).
The vulnerability is exploitable through improperly sanitized database query filters. The MongoDB Driver's allowance of the $where operator to pass JavaScript for execution creates a potential attack vector for NoSQL Injection (LoopBack MongoDB).
The recommended mitigation is to upgrade to version 3.6.0 or later of loopback-connector-mongodb. As a security measure, LoopBack automatically removes the $where and mapReduce operators from queries before passing them to the MongoDB Driver. If these operators are needed, users can disable sanitization by passing an options object with disableSanitization set to true, though this is not recommended from a security standpoint (GitHub Advisory, LoopBack MongoDB).
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."