llamaCVEVulnerability Intelligence
/
Mongoose

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.

UnclearParche disponiblequery injection
Descargar PNG JSON
CVSS 3.1
7.5
Alta
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N Fuente: CNA
ExplotaciónSin evidenciaSSVC: none · no figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche4 versionesPrimer parche a -17 d de la divulgación
Exposición9 dDesde la divulgación, 9 nov 2026, 5:32 p. m.
Detección8 minDesde la divulgación hasta su ingreso al índice
Decisión SSVCSeguir
Remediar en la ventana regular de mantenimiento
Sin explotación conocida, automatizable e impacto técnico parcial. Hay versiones corregidas disponibles.
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Evaluación SSVC +1
Explotación
Remediación
Parche 6.13.12 +3
Monitoreo
Detectada
Fuente: OSV
Fuente: NIST NVD
Verificada
23 oct 26
9 nov 26
10 nov 26
12 nov 26
16 nov 26
19 nov 26
23 oct 26
30 oct 26
6 nov 26
12 nov 26
19 nov 26
FechaFaseEventoDetalle
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
Resumen
Resumen generado por IA · CC-BY 4.0 · 9 nov 2026

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.

¿Qué significa?The sanitizeFilter option on a Mongoose connection did not apply, so a crafted operator object such as { $ne: null } in a filter can match an account record without the expected literal value. In the advisory's example, a password value of { $ne: null } returns the account record without the password.
¿Quién está afectado?The advisory lists Mongoose before 6.13.12, 7.0.0 to 7.8.12, 8.0.0 to 8.24.6, and 9.0.0 to 9.11.3. To check the installed version, run npm ls mongoose in the project. The setup involves sanitizeFilter being set on a connection with mongoose.connect() or createConnection(uri, { sanitizeFilter: true }).
¿Qué hacer?Upgrade to the fixed version on your release line: 6.13.12, 7.8.13, 8.24.7, or 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.

Contexto

Condiciones y alcance

Condiciones necesarias para que el fallo sea explotable
01
Connection-level sanitizeFilter option is set via mongoose.connect() or createConnection()“Set on a connection with mongoose.connect() or createConnection(uri, { sanitizeFilter: true })”
02
Affected Mongoose versions: before 6.13.12, 7.0.0 to 7.8.12, 8.0.0 to 8.24.6, and 9.0.0 to 9.11.3“<6.13.12 || 7.0.0 - 7.8.12 || 8.0.0 - 8.24.6 || 9.0.0 - 9.11.3”
Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:L
BajaAlta
PrivilegiosPR:N
NingunoBajosAltos
InteracciónUI:N
NingunaRequerida
AlcanceS:U
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:N
AltoBajoNinguno
DisponibilidadA:N
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
mongoose≥ 6.0.0 < 6.13.12
mongoose≥ 7.0.0 < 7.8.13
mongoose≥ 8.0.0 < 8.24.7
mongoose≥ 9.0.0 < 9.11.4
6.0.0
6.13.12
7.0.0
7.8.13
8.0.0
8.24.7
9.0.0
9.11.4
9.12.2
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde 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
Versiones corregidas6.13.127.8.138.24.79.11.4
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c
Otrahttps://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29
Otrahttps://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491
Otrahttps://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5
Otrahttps://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d
Otrahttps://github.com/Automattic/mongoose/releases/tag/6.13.12
Otrahttps://github.com/Automattic/mongoose/releases/tag/7.8.13
Otrahttps://github.com/Automattic/mongoose/releases/tag/8.24.7
Otrahttps://github.com/Automattic/mongoose/releases/tag/9.11.4

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.