9.0critical
Mongoose search injection vulnerability
- Severity
- 9.0critical CVSS:3.1 by mitre
- Exploit likelihood
- 7.24% (higher than 94% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-vg7j-7cwx-8wgwBIT-MONGOOSE-2025-23061
Description
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mongoosejs Mongoose | from 6.0.0 before 6.13.6, from 7.0.0 before 7.8.4, from 8.0.0 before 8.9.5, before 6.13.6 | CVE List, NVD |
| mongoose (npm) | from 8.0.0-rc0 before 8.9.5, from 7.0.0-rc0 before 7.8.4, before 6.13.6 | GitHub Advisory Database |
| mongoose (Bitnami) | from 6.0.0 before 6.13.6, from 7.0.0 before 7.8.4, from 8.0.0 before 8.9.5 | Bitnami Vulnerability Database |
All scores
| mitre | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.0critical CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection. NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
GitHub Advisory Database
Mongoose versions prior to 8.9.5, 7.8.4, and 6.13.6 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.
NOTE: this issue exists because of an incomplete fix for CVE-2024-53900.
NVD (es)
Mongoose anterior a la versión 8.9.5 puede usar incorrectamente un filtro $where anidado con una coincidencia populate(), lo que provoca una inyección de búsqueda. NOTA: este problema existe debido a una corrección incompleta de CVE-2024-53900.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-23061 changed 2025-01-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-vg7j-7cwx-8wgw changed 2025-10-03 | CC-BY-4.0 |
| NVD | CVE-2025-23061 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-MONGOOSE-2025-23061 changed 2026-09-10 | Apache-2.0 |