CVE-2026-125119
Mongoose query filter bypass via connection-level sanitizeFilter
An unauthenticated attacker can send query operators that match records without the expected value, like passwords.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Remediación | Parche 6.13.12 | mongoose · -17 d desde divulgación | |
| Remediación | Parche 7.8.13 | mongoose · -17 d desde divulgación | |
| Remediación | Parche 8.24.7 | mongoose · -17 d desde divulgación | |
| Remediación | Parche 9.11.4 | mongoose · -17 d desde divulgación | |
| Divulgación | Publicada | CVE-2026-125119 divulgada · CVSS 7.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Mongoose, a Node.js library for modeling MongoDB data, fails to apply the connection-level sanitizeFilter setting, so an attacker can remotely, without logging in, send query operator objects that bypass filtering and match records without the expected literal value, such as a password. The flaw affects applications that enable sanitizeFilter through mongoose.connect() or createConnection() and pass untrusted input into query filters, while the global and per-query settings still work.
Affects Mongoose connections that set the connection-level sanitizeFilter option. Fixed in 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Descripción original del registro (GitHub_M)
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
npmmongoose |
Corregida | 6.13.12, 7.8.13, 8.24.7, 9.11.4 | -17 d · -17 d · -17 d · -17 d | 9.12.2 no afectada |
6.13.127.8.138.24.79.11.4Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3chttps://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.4Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
