CVE-2026-125120Mongoose: sanitizeFilter not applied on countDocuments
- 9.8CriticalCVSS base score
- 0.57%Exploitation in 30 daysEPSS · top 52% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
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.
Timeline
ID reserved
By GitHub_M
Published
- 4 days later
· 4 days later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Awaiting Analysis | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.57% · top 52% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Affected products
- affected < 6.13.11
- affected >= 7.0.0, < 7.8.12
- affected >= 8.0.0, < 8.24.3
- affected >= 9.0.0, < 9.9.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmmongooseGHSA-pcrw-h46h-c93h (opens in a new tab)
References
References9
- https://github.com/Automattic/mongoose/security/advisories/GHSA-pcrw-h46h-c93h (opens in a new tab)x_refsource_CONFIRM
- https://github.com/Automattic/mongoose/commit/7e912af3fac52cb0eea4cd71e24d65318916831a (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/8b10d5760bb181f5bf5d01495cde161c8aed0557 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b1df045aab076b740fdaec14a15a44c694b85b7d (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b5003d3915db1cf9209c38a4b93cf3a92cddd710 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/6.13.11 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/7.8.12 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/8.24.3 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/9.9.2 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-120503 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-pcrw-h46h-c93h (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-125120)Record last updated .