CVE-2026-125120
Published:November 09, 2026
Updated:November 10, 2026
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2.
Affected Packages
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=6.0.0-rc1 <6.13.11 || >=6.0.0 <6.13.11Fix Suggestion:
Update to version 6.13.11https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=9.0.0-rc0 <9.9.2 || >=9.0.0 <9.9.2Fix Suggestion:
Update to version 9.9.2https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =7.0.0-rc0 <7.8.12 || >=7.0.0 <7.8.12Fix Suggestion:
Update to version 7.8.12https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =8.0.0-rc0 <8.24.3 || >=8.0.0 <8.24.3Fix Suggestion:
Update to version 8.24.3mongoose (NPM):
Affected version(s) >=8.0.0 <8.24.3 || =8.0.0-rc0 <8.24.3Fix Suggestion:
Update to version 8.24.3mongoose (NPM):
Affected version(s) >=5.0.0 <6.13.11 || >=3.0.0 <6.13.11 || >=4.0.0-rc0 <6.13.11 || >=6.0.0 <6.13.11 || >=3.0.0-alpha1 <6.13.11 || >=0.0.1 <6.13.11 || >=6.0.0-rc0 <6.13.11 || >=4.0.0 <6.13.11 || >=2.0.0 <6.13.11 || >=5.0.0-rc0 <6.13.11 || >=1.0.0 <6.13.11Fix Suggestion:
Update to version 6.13.11mongoose (NPM):
Affected version(s) >=7.0.0 <7.8.12 || =7.0.0-rc0 <7.8.12Fix Suggestion:
Update to version 7.8.12mongoose (NPM):
Affected version(s) >=9.0.0 <9.9.2 || >=9.0.0-rc0 <9.9.2Fix Suggestion:
Update to version 9.9.2Related ResourcesĀ (11)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.3
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
9.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements in Data Query Logic