CVE-2026-73562: Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.10, 7.8.10, 8.24.1, and 9.7.2, passing a user-controlled update such as MyModel.updateOne(filter, req.body) can exploit Mongoose update casting with a proto.x dotted path under $set. Schema.prototype.path and Schema.prototype.getPathType can treat inherited properties of schema.paths and schema.nested as schema types, allowing the casting process to set $fullPath and $parentSchemaDocArray on Object.prototype before throwing. This prototype pollution makes those properties visible on newly created objects and can cause application integrity and availability impacts. This issue is fixed in versions 6.13.10, 7.8.10, 8.24.1, and 9.7.2.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
mongooseto a version that resolves this vulnerability.Fixed in 6.13.10 - Upgrade
Upgrade
mongooseto a version that resolves this vulnerability.Fixed in 7.8.10 - Upgrade
Upgrade
mongooseto a version that resolves this vulnerability.Fixed in 8.24.1 - Upgrade
Upgrade
mongooseto a version that resolves this vulnerability.Fixed in 9.7.2
Event History
Frequently Asked Questions
What is the severity of CVE-2026-73562?
CVE-2026-73562 has a medium severity rating of 6.5.
How do I fix CVE-2026-73562?
To fix CVE-2026-73562, upgrade to Mongoose versions 6.13.10, 7.8.10, 8.24.1, or 9.7.2 or later.
What component is affected by CVE-2026-73562?
CVE-2026-73562 affects the Mongoose MongoDB object modeling tool.
What type of attack does CVE-2026-73562 facilitate?
CVE-2026-73562 facilitates prototype pollution via user-controlled update casting.
What is the risk associated with CVE-2026-73562?
CVE-2026-73562 has a risk score of 40, indicating a significant potential impact if exploited.