Skip to content

CVE-2026-73562 Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)

MediumCVSS 6.5 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: partial

Description

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.

Upgrade path

2 packages: 1 fixed.

PackageAffectedFixed inStatus
npm mongoose(npm) < 6.13.10; >= 7.0.0, < 7.8.10; >= 8.0.0, < 8.24.1; >= 9.0.0, < 9.7.2 6.13.10, 7.8.10, 8.24.1, 9.7.2 Fixed
automattic mongoose = < 6.13.10; = >= 7.0.0, < 7.8.10; = >= 8.0.0, < 8.24.1; = >= 9.0.0, < 9.7.2 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
automattic mongoose = < 6.13.10 No fix listed
automattic mongoose = >= 7.0.0, < 7.8.10 No fix listed
automattic mongoose = >= 8.0.0, < 8.24.1 No fix listed
automattic mongoose = >= 9.0.0, < 9.7.2 No fix listed
npm mongoose(npm) < 6.13.10 6.13.10
npm mongoose(npm) >= 7.0.0, < 7.8.10 7.8.10
npm mongoose(npm) >= 8.0.0, < 8.24.1 8.24.1
npm mongoose(npm) >= 9.0.0, < 9.7.2 9.7.2

References