Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-125118
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, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as proto, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. 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) >=1.1.7 <6.13.12 || >=2.0.0 <6.13.12 || >=3.0.0alpha1 <6.13.12 || >=3.0.0 <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) >=4.0.0 <6.13.12 || >=1.0.0 <6.13.12 || >=4.0.0-rc0 <6.13.12 || >=5.0.0-rc0 <6.13.12 || >=5.0.0 <6.13.12 || >=6.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 || >=2.0.0 <6.13.12 || >=3.0.0 <6.13.12
Fix Suggestion:
Update to version 6.13.12
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
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
Additional Notes
The description of this vulnerability differs from MITRE.
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.9
Attack Vector
NETWORK
Attack Complexity
LOW
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:
6.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
LOW
Availability
LOW
Weakness Type (CWE)
Improperly Controlled Modification of Object Prototype Attributes