CVE-2026-125118
Mongoose prototype pollution in schema virtual() paths
Unauthenticated attackers who control virtual field names can pollute JavaScript prototypes and spoof access checks.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L
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-125118 divulgada · CVSS 6.5 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación PoC pública | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
Mongoose, a MongoDB object modeling tool for Node.js, has a prototype pollution flaw in how it builds nested virtual field paths, which can be reached remotely, without logging in, by anyone who can influence virtual field names in dynamic schemas. An attacker can write properties to core JavaScript prototypes, which can spoof inherited checks such as authorization flags and affect other server-side code.
Descripción original del registro (GitHub_M)
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as __proto__, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
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-6972-9mcm-vhwjhttps://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecffhttps://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9https://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.
