{"id":"CVE-2026-73562","aliases":["CVE-2026-73562","GHSA-664h-wqgq-64gw","BIT-MONGOOSE-2026-73562"],"related":[],"kind":"vulnerability","state":"published","title":"Mongoose: Prototype pollution in the update casting via __proto__-prefixed dotted path (Schema._getSchema/path getter)","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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?_","format":"markdown","source":"ghsa"},{"lang":"es","text":"Mongoose es una herramienta de modelado de objetos de MongoDB diseñada para funcionar en un entorno asíncrono. Antes de las versiones 6.13.10, 7.8.10, 8.24.1 y 9.7.2, pasar una actualización controlada por el usuario, como MyModel.updateOne(filter, req.body), puede exploit el casting de actualización de Mongoose con una ruta punteada “__proto__.x” bajo $set. Schema.prototype.path y Schema.prototype._getPathType pueden tratar las propiedades heredadas de schema.paths y schema.nested como tipos de esquema, permitiendo que el proceso de casting establezca $fullPath y $parentSchemaDocArray en Object.prototype antes de lanzar una excepción. Esta contaminación de prototipos hace que esas propiedades sean visibles en objetos recién creados y puede causar impactos en la integridad y disponibilidad de la aplicación. Este problema está solucionado en las versiones 6.13.10, 7.8.10, 8.24.1 y 9.7.2.","source":"nvd"}],"published":"2026-07-24T16:22:34.000Z","modified":"2026-10-24T15:10:00.190Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1321"],"affected":[{"ranges":[{"version":"< 6.13.10","status":"affected"},{"version":">= 7.0.0, < 7.8.10","status":"affected"},{"version":">= 8.0.0, < 8.24.1","status":"affected"},{"version":">= 9.0.0, < 9.7.2","status":"affected"}],"vendor":"Automattic","product":"mongoose","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.13.10"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.8.10"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.24.1"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.7.2"}],"ecosystem":"npm","package":"mongoose","purl":"pkg:npm/mongoose","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"6.13.10"},{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.8.10"},{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.24.1"},{"type":"semver","introduced":"9.0.0","status":"affected","fixed":"9.7.2"}],"ecosystem":"Bitnami","package":"mongoose","purl":"pkg:bitnami/mongoose","source":"bitnami"}],"references":[{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-664h-wqgq-64gw","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/commit/35a3f33bc9a0a28671f99e3c5010000425650d0f","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/commit/7285466b860d3b511f8d07b2ab72656703ee707a","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/commit/953d085bee5a16b5d6c5af33a156e6314d6d9a45","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/commit/fab793b747131c68927888cba41cf3e6d6593740","tags":["web","x-refsource-misc"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/Automattic/mongoose/pull/16230","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/commit/f494b8430f9097fc70446d6949c8a42a27518e0b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.10","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.10","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/9.7.2","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73562","tags":["web"],"sources":["bitnami"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-08-14T17:41:16.928Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-73562","url":"https://www.cve.org/CVERecord?id=CVE-2026-73562","licence":"CVE Terms of Use","modified":"2026-08-14T18:09:27.112Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-664h-wqgq-64gw","url":"https://github.com/advisories/GHSA-664h-wqgq-64gw","licence":"CC-BY-4.0","modified":"2026-08-19T09:55:54.203Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-73562","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-73562","licence":"Public domain","modified":"2026-10-24T15:10:00.190Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MONGOOSE-2026-73562","url":"https://osv.dev/vulnerability/BIT-MONGOOSE-2026-73562","licence":"Apache-2.0","modified":"2026-08-19T09:55:54.203Z"}],"updatedAt":"2026-11-25T22:59:32.814Z","epss":{"score":0.00369,"percentile":0.3276,"date":"2026-12-01T12:00:22.000Z"}}