CVE-2026-42334
Published:May 14, 2026
Updated:May 18, 2026
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.9, 7.8.9, 8.22.1, and 9.1.6, a vulnerability allows bypassing Mongoose’s sanitizeFilter query sanitization mechanism via the $nor operator. When sanitizeFilter is enabled, Mongoose wraps query operators in $eq to neutralize them. However, prior to the fix, $nor was not included in the set of logical operators that are recursively sanitized. Because $nor accepts an array (like $and and $or), and arrays do not trigger hasDollarKeys(), malicious operators such as $ne, $gt, or $regex could be injected inside a $nor clause without being sanitized. This vulnerability is fixed in 6.13.9, 7.8.9, 8.22.1, and 9.1.6.
Affected Packages
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=8.0.0 <8.22.1Fix Suggestion:
Update to version 8.22.1https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=test <6.13.9Fix Suggestion:
Update to version 6.13.9https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=9.0.0 <9.1.6Fix Suggestion:
Update to version 9.1.6https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=7.0.0 <7.8.9Fix Suggestion:
Update to version 7.8.9mongoose (NPM):
Affected version(s) >=0.0.1 <6.13.9Fix Suggestion:
Update to version 6.13.9mongoose (NPM):
Affected version(s) >=7.0.0 <7.8.9Fix Suggestion:
Update to version 7.8.9mongoose (NPM):
Affected version(s) >=0.0.1 <6.13.9Fix Suggestion:
Update to version 6.13.9mongoose (NPM):
Affected version(s) >=9.0.0 <9.1.6Fix Suggestion:
Update to version 9.1.6mongoose (NPM):
Affected version(s) >=8.0.0 <8.22.1Fix Suggestion:
Update to version 8.22.1Related Resources (5)
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 Output Used by a Downstream Component ('Injection')
EPSS
Base Score:
0.04