Vulnerability 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.
CVSS Score
CRITICAL
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Mongoosejs | Mongoose | < 6.13.6 |
Related Weaknesses (CWE)
References
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.mdRelease Notes
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc6Patch
- https://github.com/Automattic/mongoose/releases/tag/8.9.5Release Notes
- https://www.npmjs.com/package/mongoose?activeTab=versionsProduct
FAQ
What is CVE-2025-23061?
CVE-2025-23061 is a vulnerability with a CVSS score of 9.0 (CRITICAL). 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.
How severe is CVE-2025-23061?
CVE-2025-23061 has been rated CRITICAL with a CVSS base score of 9.0/10. This is considered a critical vulnerability requiring immediate attention.
Is there a patch for CVE-2025-23061?
Check the references section above for vendor advisories and patch information. Affected products include: Mongoosejs Mongoose.