CVE-2026-142595
Published:December 02, 2026
Updated:December 04, 2026
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not recursively inspect undocumented operators such as $_internalSchemaXor and $_internalSchemaCond. Applications that pass attacker-controlled filter keys to queries while relying on sanitizeFilter can therefore accept nested selectors such as $ne or $regex, allowing authentication bypass, disclosure of protected values through boolean queries, or unintended updates and deletions. Applications that construct filters from individual primitive values are not affected by this bypass. This issue is fixed in versions 6.13.13, 7.8.14, 8.24.10, and 9.12.2.
Affected Packages
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =7.0.0-rc0 <7.8.14 || >=7.0.0 <7.8.14Fix Suggestion:
Update to version 7.8.14https://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.2https://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.10mongoose (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) >=6.0.0 <6.13.13 || >=6.0.0-rc0 <6.13.13Fix Suggestion:
Update to version 6.13.13mongoose (NPM):
Affected version(s) >=8.0.0 <8.24.10 || =8.0.0-rc0 <8.24.10Fix Suggestion:
Update to version 8.24.10mongoose (NPM):
Affected version(s) >=7.0.0 <7.8.14 || =7.0.0-rc0 <7.8.14Fix Suggestion:
Update to version 7.8.14mongoose (NPM):
Affected version(s) >=0.0.1 <6.13.13Fix Suggestion:
Update to version 6.13.13Related Resources (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
LOW
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
6.5
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
LOW
Availability
NONE
Weakness Type (CWE)
Improper Neutralization of Special Elements in Data Query Logic
EPSS
Base Score:
0.56