CVE-2026-125119: high-severity vulnerability in Automattic mongoose
Mongoose: Connection-level sanitizeFilter not applied
Published · Updated
E-mail alert when it lands in KEV, gets a public PoC or its score goes up.
21Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 7.5epss 0.5%
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.prototype._castConditions() and query casting check other option locations and do not read that configuration. An application that enables sanitizeFilter through mongoose.connect() or createConnection() and passes an attacker-controlled object into a query filter therefore receives a connection that reports the defense as enabled while query selector objects remain unsanitized. A crafted password value using a query operator can match an account record without the expected literal password, while global configuration through mongoose.set('sanitizeFilter') and per-query Model.find().sanitizeFilter() remain unaffected. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
Automattic · mongooseRelated CVEs — Automattic mongoose
In the same product, most dangerous first.
CVE-2026-125117HIGHMongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema stateEPSS 0.6%CVE-2026-125120CRITICALMongoose: sanitizeFilter not applied on countDocumentsEPSS 0.6%CVE-2026-73562MEDIUMMongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)EPSS 0.5%CVE-2026-125118MEDIUMMongoose: Prototype pollution via Schema.prototype.virtual()EPSS 0.4%CVE-2026-125116MEDIUMMongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collectionsEPSS 0.3%CVE-2026-42334HIGHMongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL InjectionEPSS 0.3%
References
https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911dhttps://github.com/Automattic/mongoose/releases/tag/6.13.12https://github.com/Automattic/mongoose/releases/tag/7.8.13https://github.com/Automattic/mongoose/releases/tag/8.24.7https://github.com/Automattic/mongoose/releases/tag/9.11.4https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c