What’s Vulnerable › Vulnerabilities
CVE-2025-23061
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 7.2% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-01-15 · updated 2026-06-17
- Weakness: CWE-94
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 products
- automattic/mongoose: before 6.13.6; from 7.0.0 before 7.8.4; from 8.0.0 before 8.9.5 — fixed in 6.13.6, 7.8.4, 8.9.5
How to fix
Upgrade to a fixed version: automattic/mongoose 6.13.6, 7.8.4, 8.9.5. Check the vendor advisory for mitigations.
References
- https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md
- https://github.com/Automattic/mongoose/commit/64a9f9706f2428c49e0cfb8e223065acc645f7bc
- https://github.com/Automattic/mongoose/releases/tag/8.9.5
- https://www.npmjs.com/package/mongoose?activeTab=versions
Get alerted when CVE-2025-23061 or the next vulnerability affects your stack