NoSQL injection in express-cart
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from GitHub. Impact type from CWE-89.
Summary
Versions of `express-cart` before 1.1.8 are vulnerable to NoSQL injection. The vulnerability is caused by the lack of user input sanitization in the login handlers. In both cases, the customer login and the admin login, parameters from the JSON body are sent directly into the MongoDB query which allows to insert operators. These operators can be used to extract the value of the field blindly in the same manner of a blind SQL injection. In this case, the `$regex` operator is used to guess each character of the token from the start. ## Recommendation Update to version 1.1.8 or later.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | express-cart (npm) | before 1.1.8 | 1.1.8 | Patch available | GHSA-f5cv-xrv9-r8w7 |
- express-cart (npm) Vendor— Affected before 1.1.8 Fixed in 1.1.8 Patch available GHSA-f5cv-xrv9-r8w7
Remediation
- Fix · GHSA-f5cv-xrv9-r8w7 express-cart (npm) Fixed in 1.1.8 Advisory →
Timeline
- 2026-10-03 Threatist record created from GHSA-f5cv-xrv9-r8w7
References
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences