Automattic
Mongoose: sanitizeFilter not applied on countDocuments
Not on CISA's list of exploited flaws, and not in the news we track.
CVE-2026-125120Critical9.8
Black Shard's team can check your exposure to CVE-2026-125120 and take the fix off your plate.
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.
Black Shard's team can check your exposure, take a fix off your plate or step in on a live incident.
Chance of exploitation in the next 30 days
0.57%
EPSS score from FIRST
Updated 13 Nov 2026, 12:05 UTC, 31 of 36 sources answering.
CISA Known Exploited Vulnerabilities, NVD, CVE.org, CIRCL Vulnerability-Lookup, GitHub Advisory Database (CC BY 4.0), OSV (CC BY 4.0), RansomLook (CC BY 4.0, enriched by Black Shard), SEC EDGAR, HHS breach portal, Have I Been Pwned (CC BY 4.0), Texas Attorney General, California Attorney General, Delaware Department of Justice, Vermont Attorney General, GDELT Project, Cloudflare status, abuse.ch SSLBL (CC0), CISA ICS advisories, NCSC UK (OGL v3.0), CERT-EU (CC BY 4.0), NCSC New Zealand (CC BY 4.0), MISP galaxy (CC0), OAIC determinations (CC BY 4.0), abuse.ch Feodo Tracker (CC0), Spamhaus DROP (Spamhaus DROP terms), blocklist.de, CINS Army, CERT-FR (Licence Ouverte 2.0), Red Hat Security Data (CC BY 4.0), ENISA EUVD, Microsoft MSRC, JVN iPedia, FIRST EPSS, IODA, GeoNames (CC BY 4.0), Natural Earth, Wikidata, Regional Internet Registries (delegation statistics), Protomaps, OpenStreetMap contributors (ODbL), NASA GIBS. Items link to their sources, except leak-site claims, which are never linked. This product uses the NVD API but is not endorsed or certified by the NVD.
Built on open-source software under the MIT licence. Map data from Natural Earth, NASA GIBS, Protomaps and OpenStreetMap contributors.
© 2026 Black Shard Pty LtdABN 66 696 910 773