{"id":"CVE-2026-73562","aliases":["BIT-mongoose-2026-73562","CLSA-2026-1785380878","CLSA-2026-1789641939","CLSA-2026-1789641946","CLSA-2026-1789645446","CLSA-2026-1789647573","CLSA-2026-1792188893","CLSA-2026-1792475862","EUVD-2026-58176","GHSA-664h-wqgq-64gw"],"status":"published","title":"Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","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.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-12","score":0.00503,"percentile":0.43516,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1321"],"published":"2026-07-24T16:22:34Z","modified":"2026-10-28T02:31:01Z","fixes":[{"ecosystem":"npm","package":"mongoose","fixed_in":["6.13.10","7.8.10","8.24.1","9.7.2"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"mongoose","fixed_in":["6.13.10","7.8.10","8.24.1","9.7.2"],"sources":["osv"]},{"ecosystem":"TuxCare:npm","package":"mongoose","fixed_in":["9.6.2-tuxcare.1","9.6.2-tuxcare.2","7.8.8-tuxcare.4","6.12.2-tuxcare.5","5.13.23-tuxcare.5","9.7.1-tuxcare.1","9.6.3-tuxcare.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"6.13.10"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.8.10"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.24.1"}]}]},{"source":"ghsa","ecosystem":"npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.0.0"},{"fixed":"9.7.2"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.13.10"},{"introduced":"7.0.0"},{"fixed":"7.8.10"},{"introduced":"8.0.0"},{"fixed":"8.24.1"},{"introduced":"9.0.0"},{"fixed":"9.7.2"}]}]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.6.2-tuxcare.0"},{"fixed":"9.6.2-tuxcare.1"}]}],"versions":["9.6.2"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.6.2-tuxcare.0"},{"fixed":"9.6.2-tuxcare.2"}]}],"versions":["9.6.2","9.6.2-tuxcare.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.8.8-tuxcare.0"},{"fixed":"7.8.8-tuxcare.4"}]}],"versions":["7.8.8","7.8.8-tuxcare.1","7.8.8-tuxcare.2","7.8.8-tuxcare.3"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.12.2-tuxcare.0"},{"fixed":"6.12.2-tuxcare.5"}]}],"versions":["6.12.2","6.12.2-tuxcare.1","6.12.2-tuxcare.2","6.12.2-tuxcare.3","6.12.2-tuxcare.4"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.13.23-tuxcare.0"},{"fixed":"5.13.23-tuxcare.5"}]}],"versions":["5.13.23","5.13.23-tuxcare.1","5.13.23-tuxcare.2","5.13.23-tuxcare.3","5.13.23-tuxcare.4"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.7.1-tuxcare.0"},{"fixed":"9.7.1-tuxcare.1"}]}],"versions":["9.7.1"]},{"source":"osv","ecosystem":"TuxCare:npm","package":"mongoose","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"9.6.3-tuxcare.0"},{"fixed":"9.6.3-tuxcare.1"}]}],"versions":["9.6.3"]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.13.10"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.8.10"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"8.24.1"}]}]},{"source":"osv","ecosystem":"npm","package":"mongoose","ranges":[{"type":"SEMVER","events":[{"introduced":"9.0.0"},{"fixed":"9.7.2"}]}]}],"products":[{"vendor":"automattic","product":"mongoose"}],"references":[{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-664h-wqgq-64gw","tags":["x_refsource_CONFIRM","web","advisory"]},{"url":"https://github.com/Automattic/mongoose/commit/35a3f33bc9a0a28671f99e3c5010000425650d0f","tags":["x_refsource_MISC","web","fix"]},{"url":"https://github.com/Automattic/mongoose/commit/7285466b860d3b511f8d07b2ab72656703ee707a","tags":["x_refsource_MISC","web","fix"]},{"url":"https://github.com/Automattic/mongoose/commit/953d085bee5a16b5d6c5af33a156e6314d6d9a45","tags":["x_refsource_MISC","web","fix"]},{"url":"https://github.com/Automattic/mongoose/commit/fab793b747131c68927888cba41cf3e6d6593740","tags":["x_refsource_MISC","web","fix"]},{"url":"https://github.com/Automattic/mongoose/pull/16230","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/commit/f494b8430f9097fc70446d6949c8a42a27518e0b","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.10","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.10","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.1","tags":["web"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/9.7.2","tags":["web"]},{"url":"https://github.com/advisories/GHSA-664h-wqgq-64gw"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73562","tags":["web","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/73xxx/CVE-2026-73562.json","tags":["advisory"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-73562","title":"Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","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.","status":"published","published":"2026-08-13T17:27:09.914Z","modified":"2026-08-14T18:09:27.112Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T13:43:22.599321Z"}],"euvd":[{"id":"EUVD-2026-58176","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.","status":"published","published":"2026-08-13T17:27:09Z","modified":"2026-08-14T18:09:27Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T18:01:53.90055Z"}],"ghsa":[{"id":"GHSA-664h-wqgq-64gw","title":"Mongoose: Prototype pollution in mongoose update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","description":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nPrototype pollution in update casting: passing a user-controlled update to a Mongoose update, like `MyModel.updateOne(filter, req.body)`, can cause Mongoose to set `$fullPath` and `$parentSchemaDocArray` on `Object.prototype`.\n\nExample:\n\n```javascript\nconst mongoose = require('mongoose');\nconsole.log('before:', Object.prototype.$fullPath);            // undefined\n\nconst User = mongoose.model('User', new mongoose.Schema({ name: String }));\nconst malicious = JSON.parse('{\"$set\": {\"__proto__.x\": \"anything\"}}');   // attacker-controlled update\n\nconst q = User.updateOne({}, {});\ntry { q._castUpdate(malicious); } catch (e) { /* throws AFTER the pollution side-effect */ }\n\nconsole.log('after :', Object.prototype.$fullPath);            // \"__proto__\"\nconsole.log('enumerable:', Object.prototype.propertyIsEnumerable('$fullPath'));  // true\nconsole.log('fresh {}:', ({}).$fullPath);                      // \"__proto__\"\n```\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n9.7.2, 8.24.1. 7.8.10, 6.13.10\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nCheck user-controlled updates for own `__proto__` properties before passing to Mongoose\n\n### References\n_Are there any links users can visit to find out more?_","status":"published","published":"2026-07-24T16:22:34Z","modified":"2026-08-13T17:27:27Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:41:00.097339Z"}],"nvd":[{"id":"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.","status":"published","published":"2026-08-13T18:18:18.643Z","modified":"2026-10-24T15:10:00.19Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"secondary"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T14:12:37.557758Z"}],"osv":[{"id":"CVE-2026-73562","title":"Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","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.","status":"published","published":"2026-08-13T17:27:09.914Z","modified":"2026-10-28T02:31:01.835162811Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T15:45:16.365946Z"},{"id":"GHSA-664h-wqgq-64gw","title":"Mongoose: Prototype pollution in mongoose update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","description":"### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nPrototype pollution in update casting: passing a user-controlled update to a Mongoose update, like `MyModel.updateOne(filter, req.body)`, can cause Mongoose to set `$fullPath` and `$parentSchemaDocArray` on `Object.prototype`.\n\nExample:\n\n```javascript\nconst mongoose = require('mongoose');\nconsole.log('before:', Object.prototype.$fullPath);            // undefined\n\nconst User = mongoose.model('User', new mongoose.Schema({ name: String }));\nconst malicious = JSON.parse('{\"$set\": {\"__proto__.x\": \"anything\"}}');   // attacker-controlled update\n\nconst q = User.updateOne({}, {});\ntry { q._castUpdate(malicious); } catch (e) { /* throws AFTER the pollution side-effect */ }\n\nconsole.log('after :', Object.prototype.$fullPath);            // \"__proto__\"\nconsole.log('enumerable:', Object.prototype.propertyIsEnumerable('$fullPath'));  // true\nconsole.log('fresh {}:', ({}).$fullPath);                      // \"__proto__\"\n```\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\n9.7.2, 8.24.1. 7.8.10, 6.13.10\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nCheck user-controlled updates for own `__proto__` properties before passing to Mongoose\n\n### References\n_Are there any links users can visit to find out more?_","status":"published","published":"2026-07-24T16:22:34Z","modified":"2026-08-19T09:55:54.203227351Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-1321"],"updated_at":"2026-11-02T15:46:39.266402Z"},{"id":"BIT-mongoose-2026-73562","title":"Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","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.","status":"published","published":"2026-08-19T08:48:07.081Z","modified":"2026-08-19T09:55:54.203227351Z","updated_at":"2026-11-02T15:28:33.469426Z"},{"id":"CLSA-2026-1785380878","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 9.6.2-tuxcare.1.","status":"published","published":"2026-08-04T14:52:50Z","modified":"2026-10-15T09:47:37.720773717Z","updated_at":"2026-11-02T15:43:46.850893Z"},{"id":"CLSA-2026-1789641939","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 9.6.2-tuxcare.2.","status":"published","published":"2026-09-17T10:45:39Z","modified":"2026-10-15T09:47:56.284839168Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1789641946","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 7.8.8-tuxcare.4.","status":"published","published":"2026-09-17T10:45:46Z","modified":"2026-10-15T09:47:56.241357377Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1789645446","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 6.12.2-tuxcare.5.","status":"published","published":"2026-09-17T11:44:06Z","modified":"2026-10-15T09:47:56.183684075Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1789647573","title":"TuxCare security update for mongoose (2 CVEs)","description":"TuxCare rebuilt mongoose to address 2 CVEs. Fixed in 5.13.23-tuxcare.5.","status":"published","published":"2026-09-17T12:19:33Z","modified":"2026-10-15T09:47:56.241017197Z","updated_at":"2026-11-02T15:43:48.28229Z"},{"id":"CLSA-2026-1792188893","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 9.7.1-tuxcare.1.","status":"published","published":"2026-10-16T22:14:53Z","modified":"2026-10-17T01:30:05.96089362Z","updated_at":"2026-11-02T15:43:51.747192Z"},{"id":"CLSA-2026-1792475862","title":"TuxCare security update for mongoose (1 CVE)","description":"TuxCare rebuilt mongoose to address 1 CVE. Fixed in 9.6.3-tuxcare.1.","status":"published","published":"2026-10-20T05:57:42Z","modified":"2026-10-20T07:15:09.269667749Z","updated_at":"2026-11-02T15:43:54.378946Z"}]}}
