CVE-2026-142596: Mongoose · sanitizeProjection can be bypassed to include fields deselected with `select: false`
Affects mongooseSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 8.24.10 soon.
Data as of 4 Dec 2026, 00:45 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.5 |
|---|
- Patch
- Available – fixed in 8.24.10, 9.12.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 3 Dec 2026.
What to do
Upgrade mongoose to 8.24.10; mongoose to 9.12.2.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmongoose | Affected
| Fixed in
|
| npmmongoose | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied by upgrading Mongoose to version 8.24.10 or later, or 9.12.2 or later. Users should ensure sanitizeProjection is enabled where appropriate. No alternative mitigations are indicated. The vendor advisory confirms the fix in these versions.
Description
Mongoose versions starting from 8.5.0 introduced the sanitizeProjection option to prevent user-controlled projections from including fields marked with select: false, such as password hashes. However, multiple projection forms can bypass this protection, allowing unauthorized access to sensitive fields despite sanitizeProjection being enabled. This affects versions from 8.5.0 up to but not including 8.24.10 and from 9.0.0 up to but not including 9.12.2. The issue was fixed in versions 8.24.10 and 9.12.2.
References
- github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmq (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-142596 (opens in a new tab)
- github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4 (opens in a new tab)
- github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093 (opens in a new tab)
- github.com/Automattic/mongoose (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/8.24.10 (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/9.12.2 (opens in a new tab)