CVE-2026-142596
HIGH 7.5CVSS 3.1Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`
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.
- Published
- 2 Dec 2026
- Last modified
- 4 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-200
- Also known as
- GHSA-xfcm-rmv3-crmq
- Sources
- NVDJSONCVE ListJSONOSV GHSA-xfcm-rmv3-crmqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | GitHub_M | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | Automattic | mongoose | = >= 8.5.0, < 8.24.10; = >= 9.0.0, < 9.12.2 | |
| OSV | npm | mongoose | >= 8.5.0, < 8.24.10 | 8.24.10 |
| OSV | npm | mongoose | >= 9.0.0, < 9.12.2 | 9.12.2 |
References
- https://github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4 · x_refsource_MISC, WEB
- https://github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093 · x_refsource_MISC, WEB
- https://github.com/Automattic/mongoose/releases/tag/8.24.10 · x_refsource_MISC, WEB
- https://github.com/Automattic/mongoose/releases/tag/9.12.2 · x_refsource_MISC, WEB
- https://github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmq · x_refsource_CONFIRM, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-142596 · ADVISORY
- https://github.com/Automattic/mongoose · PACKAGE
History
- 4 Dec 2026 01:56 UTC · OSV: first stored (published 4 Dec 2026)
- 3 Dec 2026 17:56 UTC · NVD: updated (other details)
- 3 Dec 2026 16:56 UTC · CVE List: updated (other details)
- 2 Dec 2026 22:21 UTC · NVD: first stored (published 2 Dec 2026)
- 2 Dec 2026 22:00 UTC · CVE List: first stored (published 2 Dec 2026)