# CVE-2026-142596: Mongoose: sanitizeProjection can be bypassed to include fields deselected with \`select: false\`

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 8.24.10, 9.12.2 (CNA); fix release not confirmed
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-03
- Aliases: GHSA-xfcm-rmv3-crmq
- Record: https://cvemate.com/vulnerability/CVE-2026-142596 · JSON: https://cvemate.com/vulnerability/CVE-2026-142596/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.685%, percentile 54%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- automattic mongoose: ≥ 8.5.0, \< 8.24.10 \| ≥ 9.0.0, \< 9.12.2
- Npm mongoose (Npm): ≥ 8.5.0, \< 8.24.10 \| ≥ 9.0.0, \< 9.12.2

## References

- <https://github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmq>
- <https://github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4>
- <https://github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093>
- <https://github.com/Automattic/mongoose/releases/tag/8.24.10>
- <https://github.com/Automattic/mongoose/releases/tag/9.12.2>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-142596>
- <https://github.com/Automattic/mongoose>

---

Data as of 2026-12-05T10:11:10.408Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
