Vulnerability DatabaseGHSA-hxwc-5vw9-2w4w

GHSA-hxwc-5vw9-2w4w
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

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-63376HIGH8.2
  • JavaScript logoJavaScript
  • trigger-dev
NoYesSep 03, 2026
GHSA-7q9c-hpx7-9cwmHIGH7.5
  • JavaScript logoJavaScript
  • @typespec/spector
NoYesSep 04, 2026
CVE-2026-77465HIGH7.5
  • JavaScript logoJavaScript
  • cockpit-image-builder.src
NoYesSep 03, 2026
CVE-2026-71429MEDIUM6.2
  • JavaScript logoJavaScript
  • stream-json
NoYesSep 03, 2026
GHSA-6hxq-p678-4hr2LOW2
  • JavaScript logoJavaScript
  • @simplewebauthn/server
NoYesSep 04, 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