- Accueil
- Vulnérabilités
- CVE-2026-142596
CVE-2026-142596
Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`
Résumé
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, object or array aggregation expressions, nested and parent projections, positional projections, $meta, discriminator-specific exclusions, an own __proto__ key, and projection-cast error paths. Applications that pass attacker-controlled data to select(), find(filter, projection), or the projection option while relying on sanitizeProjection can return fields marked select: false, including password hashes, reset tokens, API keys, and nested secrets. Nested exclusion objects, $elemMatch combined with an exclusion or a cast error, and discriminator filters can also cause ordinary queries that do not enable sanitizeProjection to omit the select: false exclusions that Mongoose normally adds. This issue is fixed in versions 8.24.10 and 9.12.2.
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) |
Correctif
Mise à jour — npm/mongoose 8.24.10; npm/mongoose 9.12.2source officielle
Source : GitHub Advisory
Contournement
Aucun contournement renseigné.
Savoir si vous êtes touché
Aucune méthode de vérification renseignée.
Chronologie
- — Publication de la CVE (cve)
Avis CERT-FR
- GHSA-xfcm-rmv3-crmq — Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false` 4 déc. 2026
Références
- https://github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmqWEB
- https://github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4WEB
- https://github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093WEB
- https://github.com/Automattic/mongoose/releases/tag/8.24.10WEB
- https://github.com/Automattic/mongoose/releases/tag/9.12.2WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142596ADVISORY
- 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:L/PR:N/UI:N/S:U/C:H/I:N/A:N(CVSS 3.1, CNA:security-advisories@github.com)- Faiblesse
- CWE-200 · Divulgation d'information