NoSQL Injection in loopback-connector-mongodb
Summary
GHSA-hxwc-5vw9-2w4w: NoSQL Injection in loopback-connector-mongodb. Affects loopback-connector-mongodb versions < 3.6.0. Fixed in 3.6.0. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
loopback-connector-mongodb is an npm package that serves as a connector for MongoDB in the LoopBack framework. It allows developers to interact with MongoDB databases using LoopBack models and APIs. This package is widely used in Node.js applications that require MongoDB integration. However, versions prior to 3.6.0 are vulnerable to NoSQL Injection.
Vulnerability Detail
NoSQL Injection is a type of injection attack where an attacker can manipulate the input to a NoSQL database query in order to execute unauthorized operations or retrieve sensitive data. In the case of loopback-connector-mongodb, the filters passed to the database query are not properly sanitized, allowing an attacker to inject malicious code that gets executed on the database driver. This can lead to data leakage and potential compromise of the entire database.
How To Fix
Latest published version: 8.0.3 as of 23 Oct 2026
npm install loopback-connector-mongodb@8.0.3
Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.
If you need the minimum change
3.6.0
This is the first release that contains the fix.
npm install loopback-connector-mongodb@3.6.0
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Conclusion
NoSQL Injection in loopback-connector-mongodb is a critical vulnerability that can lead to data leakage and compromise of the entire database. It is crucial to upgrade to version 3.6.0 or later to mitigate this risk. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for loopback-connector-mongodb →
FAQ
NoSQL Injection is a type of injection attack where an attacker manipulates the input to a NoSQL database query to execute unauthorized operations or retrieve sensitive data.
loopback-connector-mongodb is an npm package that provides a connector for MongoDB in the LoopBack framework, allowing developers to interact with MongoDB databases using LoopBack models and APIs.
NoSQL Injection in loopback-connector-mongodb can lead to data leakage and compromise of the entire database. Attackers can execute unauthorized operations and retrieve sensitive data.
To fix the vulnerability, upgrade to version 3.6.0 or later of loopback-connector-mongodb. Make sure to update the package.json file and install the latest version of the package.
No workaround is mentioned for this vulnerability. It is recommended to upgrade to the fixed version.
References
Related vulnerabilities
Recent vulnerabilities recorded for loopback-connector-mongodb.