CVE-2026-125120
Mongoose is a MongoDB object modeling tool designed to work in an …
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h
- nvd.nist.gov/vuln/detail/CVE-2026-125120
- github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a
- github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557
- github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d
- github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710
- github.com/Automattic/mongoose/releases/tag/6.13.11
- github.com/Automattic/mongoose/releases/tag/7.8.12
- nvd.nist.gov/vuln/detail/CVE-2026-125120
- cve.org/CVERecord?id=CVE-2026-125120
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.