home / blog
2026-11-29 · critical
CVE-2025-23061: Critical Vulnerability in Mongoose
Critical vulnerability in Mongoose allows search injection via $where filters. Update immediately.

CVE-2025-23061 is a critical vulnerability present in Mongoose versions prior to 8.9.5. The flaw allows search injection through improper use of $where filters with populate() match. This type of vulnerability can allow an attacker to manipulate search queries and access or modify unauthorized data.
The vulnerability has a CVSS score of 9.0, classified as critical. It was officially published in the National Vulnerability Database on January 15, 2025. There are signals indicating the presence of exploits on public GitHub repositories, although technical details are not available.
To defend against this threat, it is imperative to immediately update to Mongoose version 8.9.5 or later. Check project dependencies to identify any use of vulnerable versions. Monitor system logs to detect any attempts to exploit the vulnerability.
At a glance
- What
- Vulnerability that allows search injection through improper use of $where filters with populate() match
- Severity
- Critical (CVSS 9.0)
- Affected versions
- Mongoose before version 8.9.5
- Fix
- Update to version 8.9.5 or later
- Status
- Published in NVD on 15/01/2025
- Action
- Update Mongoose immediately
Sources: NVD, CVE-2025-23061