NoSQL injection in express-cart
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.
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de npm | express-cart | < 1.1.8 | 1.1.8 |
Referencias
- Debilidad (CWE)
CWE-89- Plataforma
- npm
- Paquete
express-cart- Publicada
- 01.09.2020
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-f5cv-xrv9-r8w7 - CC BY 4.0
Historial de vulnerabilidades: express-cart
Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 7
- Primera → última
- 02.2019 05.2022
- Sin corrección
- 1
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 6
- Baja 1
Divulgaciones por año
- 2019: 1
- 2020: 3
- 2021: 1
- 2022: 2
- 2023: 0
- 2024: 0
- 2025: 0
- 2026: 0
-
NoSQL injection in express-cart esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.