- Accueil
- Vulnérabilités
- CVE-2026-125116
CVE-2026-125116
Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections
Résumé
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, Mongoose uses attacker-controlled discriminator key values, including the default __t field, to index plain-object registries such as Model.discriminators and schema.discriminators without requiring an own property. Values such as constructor, toString, or hasOwnProperty can therefore resolve to inherited built-in functions instead of a registered discriminator, causing type confusion in model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. In the bulkWrite() insertOne path with skipValidation enabled, a constructor value can cause a raw input object to be stored without schema casting or strict filtering, and a stored poisoned document can make every query that hydrates it fail until the document is removed. The weakness reads inherited properties but does not modify Object.prototype and is not prototype pollution. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Aucune traduction française : description d’origine affichée.
Produits et versions affectés
Automattic (1 ligne(s))
| Produit | Versions | Corrigé dans | Source |
|---|---|---|---|
| mongoose | Versions non précisées | — | CNA (éditeur ou attributeur) |
npm (4 ligne(s))
Correctif
Mise à jour — npm/mongoose 6.13.12; npm/mongoose 7.8.13; npm/mongoose 8.24.7; npm/mongoose 9.11.4source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Exploit signalé par les sources
Ces liens sont étiquetés « exploit » par le NVD ou par CVE.org. Nous ne les avons pas vérifiés ni copiés ; ouvrez-les avec prudence.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-wr5m-5jph-8m96 — Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections 10 nov. 2026
Références
- https://github.com/Automattic/mongoose/security/advisories/GHSA-wr5m-5jph-8m96exploit
- https://github.com/Automattic/mongoose/commit/0ecd8040d9b446f36535d79938c130c800f91766x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/18afab75bea861f625b7c5b54635c84567ec566cx_refsource_MISC
- https://github.com/Automattic/mongoose/commit/390453c8ce1b36b6cfd1e63432a910da1f3d81d5x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/8cee51beead554df1f3d05645edb439c69eb2a9bx_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b26c43554233134ea978c5852babe13be858b2cfx_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b68f90734b50cd22c89a669c8ca1469d7234b296x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/6.13.12x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/7.8.13x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/8.24.7x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/9.11.4x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-125116ADVISORY
- https://github.com/Automattic/mongoosePACKAGE
Provenance des données
- Statut
- NVD
- Date de publication
- NVD
- Description
- CNA (éditeur ou attributeur)
- Score CVSS
- CNA (éditeur ou attributeur)
- Faiblesse (CWE)
- NVD
- Vecteur CVSS
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L(CVSS 3.1, CNA:GitHub_M)- Faiblesse
- CWE-843 · Autre (CWE-843)