1. Accueil
  2. Vulnérabilités
  3. CVE-2026-142596

CVE-2026-142596

Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`

Publiée le 2 déc. 2026 · modifiée le 3 déc. 2026 · Sources : NVD, CNA (éditeur ou attributeur), CERT-FR, EPSS (FIRST)

Moyen 47/100

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))
Automattic
ProduitVersionsCorrigé dansSource
mongoose Versions non précisées — CNA (éditeur ou attributeur)
npm (2 ligne(s))
npm
ProduitVersionsCorrigé dansSource
mongoose de 8.5.0 (inclus) à 8.24.10 (exclu) 8.24.10 GitHub Advisory
mongoose de 9.0.0 (inclus) à 9.12.2 (exclu) 9.12.2 GitHub Advisory

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

  1. — Publication de la CVE (cve)

Avis CERT-FR

Références

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

Comment sont obtenues et calculées ces données