Vulnerability DatabaseGHSA-f5cv-xrv9-r8w7

GHSA-f5cv-xrv9-r8w7
JavaScript vulnerability analysis and mitigation

Overview

A high-severity NoSQL injection vulnerability was identified in express-cart versions 1.1.7 and earlier, tracked as GHSA-f5cv-xrv9-r8w7. The vulnerability was discovered on August 20, 2018, and published to the GitHub Advisory Database on September 1, 2020. This security issue affects both customer and admin login functionality in the express-cart npm package (GitHub Advisory).

Technical details

The vulnerability stems from inadequate user input sanitization in the login handlers. Both customer and admin login endpoints are affected, where parameters from the JSON body are directly incorporated into MongoDB queries without proper sanitization. This allows attackers to inject MongoDB operators, particularly the $regex operator, which can be used to extract field values through blind injection techniques, similar to blind SQL injection attacks. The vulnerability has been assigned a CVSS score of 8.2 with the vector CVSS:3.0/AV:N/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:N and is categorized under CWE-89 (Security WG).

Impact

The vulnerability enables attackers to perform email enumeration through MongoDB injection in both customer and admin interfaces. This could potentially lead to unauthorized access to sensitive information and compromise of user accounts (GitHub Advisory).

Mitigation and workarounds

Users are strongly recommended to update to express-cart version 1.1.8 or later, which contains the patch for this vulnerability. This version implements proper input sanitization to prevent NoSQL injection attacks (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

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