CVE-2026-125120: Vulnerability in Automattic Mongoose
Critical. 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...
npm, CWE-943
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.9 % in 30 days
- Fix
- Fixed version known
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-pcrw-h46h-c93h
- EU ID
- EUVD-2026-120503
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-943
- Published
- 9 Nov 2026
- Last change
- 13 Nov 2026
- Likelihood rank
- Higher than 59 % of all rated vulnerabilities
- Analysis status
- Awaiting Analysis
- Ecosystem
- npm
Affected products
Affected versions and the first fixed release
- Automattic Mongoose From 9.0.0, before 9.9.2; From 8.0.0, before 8.24.3; From 7.0.0, before 7.8.12; Before 6.13.11; Versions < 6.13.11, >= 7.0.0, < 7.8.12, >= 8.0.0, < 8.24.3, >= 9.0.0, < 9.9.2. Fixed in 7.8.12, 8.24.3, 9.9.2, 6.13.11
Affected packages
Vulnerable version ranges and fixed releases
- mongoose npm, Affected before 6.13.11. Fixed in 6.13.11
Advisories
Vendor and security advisories
Patches and fixes
Updates, commits and release notes
- 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
- github.com/Automattic/mongoose/releases/tag/8.24.3
- github.com/Automattic/mongoose/releases/tag/9.9.2
Related
- Mongoose vulnerabilities Recent advisories, watch this product