CVE-2026-125119
Published:November 09, 2026
Updated:November 10, 2026
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.prototype._castConditions() and query casting check other option locations and do not read that configuration. An application that enables sanitizeFilter through mongoose.connect() or createConnection() and passes an attacker-controlled object into a query filter therefore receives a connection that reports the defense as enabled while query selector objects remain unsanitized. A crafted password value using a query operator can match an account record without the expected literal password, while global configuration through mongoose.set('sanitizeFilter') and per-query Model.find().sanitizeFilter() remain unaffected. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Affected Packages
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =8.0.0-rc0 <8.24.7 || >=8.0.0 <8.24.7Fix Suggestion:
Update to version 8.24.7https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=9.0.0-rc0 <9.11.4 || >=9.0.0 <9.11.4Fix Suggestion:
Update to version 9.11.4https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=6.0.0-rc1 <6.13.12 || >=6.0.0 <6.13.12Fix Suggestion:
Update to version 6.13.12https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =7.0.0-rc0 <7.8.13 || >=7.0.0 <7.8.13Fix Suggestion:
Update to version 7.8.13mongoose (NPM):
Affected version(s) >=8.0.0 <8.24.7 || =8.0.0-rc0 <8.24.7Fix Suggestion:
Update to version 8.24.7mongoose (NPM):
Affected version(s) >=9.0.0 <9.11.4 || >=9.0.0-rc0 <9.11.4Fix Suggestion:
Update to version 9.11.4mongoose (NPM):
Affected version(s) >=7.0.0 <7.8.13 || =7.0.0-rc0 <7.8.13Fix Suggestion:
Update to version 7.8.13mongoose (NPM):
Affected version(s) >=6.0.0 <6.13.12 || >=6.0.0-rc0 <6.13.12Fix Suggestion:
Update to version 6.13.12Related Resources (11)
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)
Improper Neutralization of Special Elements in Data Query Logic