Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-125116
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.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose uses attacker-controlled discriminator key values, including the default __t field, to index plain-object registries such as Model.discriminators and schema.discriminators without requiring an own property. Values such as constructor, toString, or hasOwnProperty can therefore resolve to inherited built-in functions instead of a registered discriminator, causing type confusion in model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. In the bulkWrite() insertOne path with skipValidation enabled, a constructor value can cause a raw input object to be stored without schema casting or strict filtering, and a stored poisoned document can make every query that hydrates it fail until the document is removed. The weakness reads inherited properties but does not modify Object.prototype and is not prototype pollution. 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) >=9.0.0-rc0 <9.11.4 || >=9.0.0 <9.11.4
Fix Suggestion:
Update to version 9.11.4
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =8.0.0-rc0 <8.24.7 || >=8.0.0 <8.24.7
Fix Suggestion:
Update to version 8.24.7
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) =7.0.0-rc0 <7.8.13 || >=7.0.0 <7.8.13
Fix Suggestion:
Update to version 7.8.13
https://github.com/Automattic/mongoose.git (GITHUB):
Affected version(s) >=3.7.4 <6.13.12 || >=4.0.0-rc0 <6.13.12 || >=4.0.0 <6.13.12 || >=5.0.0-rc0 <6.13.12 || >=5.0.0 <6.13.12 || >=6.0.0-rc1 <6.13.12 || >=6.0.0 <6.13.12
Fix Suggestion:
Update to version 6.13.12
mongoose (NPM):
Affected version(s) >=5.0.0-rc0 <6.13.12 || >=0.0.1 <6.13.12 || >=3.0.0-alpha1 <6.13.12 || >=6.0.0 <6.13.12 || >=5.0.0 <6.13.12 || >=6.0.0-rc0 <6.13.12 || >=4.0.0 <6.13.12 || >=4.0.0-rc0 <6.13.12 || >=1.0.0 <6.13.12 || >=3.0.0 <6.13.12 || >=2.0.0 <6.13.12
Fix Suggestion:
Update to version 6.13.12
mongoose (NPM):
Affected version(s) >=8.0.0 <8.24.7 || =8.0.0-rc0 <8.24.7
Fix Suggestion:
Update to version 8.24.7
mongoose (NPM):
Affected version(s) >=9.0.0 <9.11.4 || >=9.0.0-rc0 <9.11.4
Fix Suggestion:
Update to version 9.11.4
mongoose (NPM):
Affected version(s) >=7.0.0 <7.8.13 || =7.0.0-rc0 <7.8.13
Fix Suggestion:
Update to version 7.8.13
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.3
Attack Vector
NETWORK
Attack Complexity
HIGH
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
LOW
Vulnerable System Availability
LOW
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
4.8
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Access of Resource Using Incompatible Type