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.4Fix Suggestion:
Update to version 9.11.4https://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) =7.0.0-rc0 <7.8.13 || >=7.0.0 <7.8.13Fix Suggestion:
Update to version 7.8.13https://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.12Fix Suggestion:
Update to version 6.13.12mongoose (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.12Fix Suggestion:
Update to version 6.13.12mongoose (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) >=8.0.0 <8.24.7 || =8.0.0-rc0 <8.24.7Fix Suggestion:
Update to version 8.24.7Additional Notes
The description of this vulnerability differs from MITRE.
Related Resources (11)
Do you need more information?
Contact UsCVSS 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