CVE-2026-142595: fallo de gravedad media en Automattic mongoose
Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
Publicada el · Actualizada el
Aviso por correo cuando entre en el KEV, tenga PoC pública o suba de nota.
13Vexday Risk Score
Sin señal de explotación. Ningún artefacto público de explotación conocido hasta ahora.
ssvc Trackcvss 6.5epss 0.8%
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not recursively inspect undocumented operators such as $_internalSchemaXor and $_internalSchemaCond. Applications that pass attacker-controlled filter keys to queries while relying on sanitizeFilter can therefore accept nested selectors such as $ne or $regex, allowing authentication bypass, disclosure of protected values through boolean queries, or unintended updates and deletions. Applications that construct filters from individual primitive values are not affected by this bypass. This issue is fixed in versions 6.13.13, 7.8.14, 8.24.10, and 9.12.2.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Productos afectados
Automattic · mongooseCVEs relacionadas — Automattic mongoose
En el mismo producto, de las más peligrosas a las menos.
CVE-2026-125120CRITICALMongoose: sanitizeFilter not applied on countDocumentsEPSS 0.7%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.7%CVE-2026-125119HIGHMongoose: Connection-level sanitizeFilter not appliedEPSS 0.7%CVE-2026-142608NONEMongoose: Plain objects with a forged _bsontype bypass ObjectId and String casting, leaking and replaying data from other commandEPSS 0.7%CVE-2026-142596HIGHMongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`EPSS 0.7%CVE-2026-125118MEDIUMMongoose: Prototype pollution via Schema.prototype.virtual()EPSS 0.6%
Referencias
https://github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea060bc3dbahttps://github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835https://github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493dbd2508https://github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece583c2dbhttps://github.com/Automattic/mongoose/releases/tag/7.8.14https://github.com/Automattic/mongoose/releases/tag/8.24.10https://github.com/Automattic/mongoose/releases/tag/9.12.2https://github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9f