CVE-2026-142596 — Automattic mongoose
One of 3 Automattic mongoose vulnerabilities published together by NVD: our article covers all of them.
DatabasesVulnerabilitiesSummary
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.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, none on integrity and availability
Weakness
- CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| mongoose (npm) | ≥ 8.5.0, < 8.24.10 | 8.24.10 |
| ≥ 9.0.0, < 9.12.2 | 9.12.2 | |
| Automattic mongoose | >= 8.5.0, < 8.24.10, >= 9.0.0, < 9.12.2 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5de…
- github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e1466…
- github.com/Automattic/mongoose/releases/tag/8.24.10
- github.com/Automattic/mongoose/releases/tag/9.12.2
Other references
Affected
- Automattic mongoose
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-142596?
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. Weakness type: Exposure of Sensitive Information to an Unauthorized Actor (CWE-200).
How severe is CVE-2026-142596?
CVE-2026-142596 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-142596 being exploited?
Not as far as is known: CVE-2026-142596 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.7% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142596?
mongoose (npm) ≥ 8.5.0, < 8.24.10 (fixed in 8.24.10); mongoose (npm) ≥ 9.0.0, < 9.12.2 (fixed in 9.12.2); Automattic mongoose >= 8.5.0, < 8.24.10, >= 9.0.0, < 9.12.2.
How do I fix CVE-2026-142596?
Update to a fixed release: mongoose (npm) 8.24.10; mongoose (npm) 9.12.2.