CVE-2024-53900
9.1critical
Mongoose search injection vulnerability
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 3.40% (higher than 89% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-m7xq-9374-9rvxBIT-MONGOOSE-2024-53900
Description
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| automattic mongoose | before 8.8.3 | CVE List |
| mongoose (npm) | from 8.0.0-rc0 before 8.8.3, from 7.0.0-rc0 before 7.8.3, from 6.0.0-rc0 before 6.13.5, from 3.6.0-rc0 before 5.13.23 | GitHub Advisory Database |
| mongoosejs mongoose | before 6.13.5, from 7.0.1 before 7.8.3, from 8.0.1 before 8.8.3, 7.0.0, 8.0.0 | NVD |
| mongoose (Bitnami) | before 6.13.5, from 7.0.0 before 8.8.3 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 9.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
GitHub Advisory Database
Mongoose versions prior to 8.8.3, 7.8.3, 6.13.5, and 5.13.23 are vulnerable to improper use of the $where operator. This vulnerability arises from the ability of the $where clause to execute arbitrary JavaScript code in MongoDB queries, potentially leading to code injection attacks and unauthorized access or manipulation of database data.
NVD (es)
Mongoose anterior a 8.8.3 puede usar $where incorrectamente en la coincidencia.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53900 changed 2025-01-06 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-m7xq-9374-9rvx changed 2026-02-05 | CC-BY-4.0 |
| NVD | CVE-2024-53900 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MONGOOSE-2024-53900 changed 2026-09-08 | Apache-2.0 |