CVE-2026-125120: Mongoose: sanitizeFilter not applied on countDocuments
Vulnerability summary
CVE-2026-125120 is a critical (CVSS 9.8) vulnerability in automattic mongoose. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 56.3% of scored vulnerabilities.
Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 09-11-2026PublishedVulnerability first disclosed.
- 13-11-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.75%
Chance of exploitation in the next 30 days
Percentile
56%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Automattic1 product
- mongoose< 6.13.11 | ≥ 7.0.0, < 7.8.12 | ≥ 8.0.0, < 8.24.3 | ≥ 9.0.0, < 9.9.2
Npm1 product
- mongoose< 6.13.11 | ≥ 7.0.0, < 7.8.12 | ≥ 8.0.0, < 8.24.3 | ≥ 9.0.0, < 9.9.2
2 vendors · 2 products