CVE-2026-142596
Published:December 02, 2026
Updated:December 04, 2026
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.
Affected Packages
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =8.0.0-rc0 <8.24.10 || >=8.0.0 <8.24.10Fix Suggestion:
Update to version 8.24.10https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=9.0.0-rc0 <9.12.2 || >=9.0.0 <9.12.2Fix Suggestion:
Update to version 9.12.2mongoose (NPM):
Affected version(s) >=9.0.0 <9.12.2 || >=9.0.0-rc0 <9.12.2Fix Suggestion:
Update to version 9.12.2mongoose (NPM):
Affected version(s) =8.0.0-rc0 <8.24.10 || >=8.0.0 <8.24.10Fix Suggestion:
Update to version 8.24.10Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive Information to an Unauthorized Actor
EPSS
Base Score:
0.69