CVE-2026-73562
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.
How to fix
- mongoose6.13.10, 7.8.10, 8.24.1, 9.7.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| mongoosenpm | v < 6.13.10, 7.0.0 ≤ v < 7.8.10, 8.0.0 ≤ v < 8.24.1, 9.0.0 ≤ v < 9.7.2 | 6.13.10, 7.8.10, 8.24.1, 9.7.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.