CVE-2025-23061
CRITICAL9.0EPSS 55.3%Mongoose search injection vulnerability
Published: 1/15/2025Modified: 10/6/2025
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 packages (2)
- Bitnami/mongoose>= 6.0.0, < 6.13.6, >= 7.0.0, < 7.8.4, >= 8.0.0, < 8.9.5
- npm/mongoose>= 8.0.0-rc0, < 8.9.5
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
References (12)
- ADVISORYhttps://github.com/advisories/GHSA-m7xq-9374-9rvx
- ADVISORYhttps://nvd.nist.gov/vuln/detail/CVE-2025-23061
- PATCHhttps://github.com/Automattic/mongoose
- WEBhttps://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
- WEBhttps://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc
- WEBhttps://github.com/Automattic/mongoose/compare/6.13.5...6.13.6
- WEBhttps://github.com/Automattic/mongoose/compare/7.8.3...7.8.4
- WEBhttps://github.com/Automattic/mongoose/compare/8.9.4...8.9.5
- WEBhttps://github.com/Automattic/mongoose/releases/tag/6.13.6
- WEBhttps://github.com/Automattic/mongoose/releases/tag/7.8.4
- WEBhttps://github.com/Automattic/mongoose/releases/tag/8.9.5
- WEBhttps://www.npmjs.com/package/mongoose?activeTab=versions