{"id":"EUVD-2026-120501","revision":null,"records":[{"revision":"8691224360c34d84a17baed79d9e601a","observedAt":"2026-11-14T03:56:54.576+00:00","statement":{"source":"cve-program","id":"CVE-2026-125118","aliases":[],"title":"Mongoose: Prototype pollution via Schema.prototype.virtual()","description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as __proto__, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.","state":0,"publishedAt":"2026-11-09T22:29:55.07+00:00","modifiedAt":"2026-11-14T02:27:37.624+00:00","affected":[{"ecosystem":"Vendor product","name":"mongoose","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Automattic\",\n                    \"product\": \"mongoose\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 6.13.12\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 7.0.0, < 7.8.13\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 8.0.0, < 8.24.7\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 9.0.0, < 9.11.4\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"MEDIUM"}],"references":["https://github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj","https://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","https://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","https://github.com/Automattic/mongoose/releases/tag/6.13.12","https://github.com/Automattic/mongoose/releases/tag/7.8.13","https://github.com/Automattic/mongoose/releases/tag/8.24.7","https://github.com/Automattic/mongoose/releases/tag/9.11.4"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-125118","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-125118","identifiers":["CVE-2026-125118"]},"retained":false,"historicalAffected":[]},{"revision":"620db295467843eebd21a951cdefab85","observedAt":"2026-11-16T22:29:27.316+00:00","statement":{"source":"euvd","id":"EUVD-2026-120501","aliases":["CVE-2026-125118","GHSA-6972-9mcm-vhwj"],"title":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validatio…","description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as __proto__, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD 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,"severity":null}],"references":["https://github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj","https://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","https://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","https://github.com/Automattic/mongoose/releases/tag/6.13.12","https://github.com/Automattic/mongoose/releases/tag/7.8.13","https://github.com/Automattic/mongoose/releases/tag/8.24.7","https://github.com/Automattic/mongoose/releases/tag/9.11.4"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-120501","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Nov 9, 2026, 10:29:55 PM","dateUpdated":"Nov 14, 2026, 2:27:37 AM"},"relatedAdvisories":[],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2026-120501","identifiers":["EUVD-2026-120501","CVE-2026-125118","GHSA-6972-9mcm-vhwj"]},"retained":false,"historicalAffected":[]},{"revision":"df3d6f9bf0c84d9a9fce95c6aad355d2","observedAt":"2026-11-14T23:32:34.53+00:00","statement":{"source":"nvd","id":"CVE-2026-125118","aliases":[],"title":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validatio…","description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as __proto__, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.","state":0,"publishedAt":"2026-11-09T23:17:22.243+00:00","modifiedAt":"2026-11-14T03:17:24.86+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":6.5,"severity":"MEDIUM"}],"references":["https://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","https://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","https://github.com/Automattic/mongoose/releases/tag/6.13.12","https://github.com/Automattic/mongoose/releases/tag/7.8.13","https://github.com/Automattic/mongoose/releases/tag/8.24.7","https://github.com/Automattic/mongoose/releases/tag/9.11.4","https://github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-125118","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-1321"],"productCriteria":[],"sourceDates":{"published":"2026-11-09T23:17:22.243","lastModified":"2026-11-14T03:17:24.860"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-125118","identifiers":["CVE-2026-125118"]},"retained":false,"historicalAffected":[]},{"revision":"162ce267d8024b08986140ba770c7d75","observedAt":"2026-11-10T21:21:46.124+00:00","statement":{"source":"osv","id":"GHSA-6972-9mcm-vhwj","aliases":["CVE-2026-125118"],"title":"Mongoose: Prototype pollution via Schema.prototype.virtual()","description":"### Summary\n\nPrototype pollution via Schema.prototype.virtual() — the 2022 fix for CVE-2022-2564 / CVE-2022-24304 protected Schema.path()/add() but never virtual(), so the same class of bug is still exploitable in all maintained release lines.\n\n### Details\n\nIn lib/schema.js, Schema.prototype.virtual() (defined at line 2643) builds the virtual path via:\n\n```javascript\nvirtuals[name] = parts.reduce(function(mem, part, i) {\nmem[part] || (mem[part] = (i === parts.length - 1)\n? new VirtualType(options, name)\n: {});\nreturn mem[part];\n}, this.tree); // lines 2755-2759\n```\n\nUnlike `path()`/`add()`, `virtual()` never received the `specialProperties` check added for CVE-2022-2564/CVE-2022-24304 (`lib/schema.js` lines 806, 1308, 1331).\n\nA path containing `__proto__`/`constructor`/`prototype` segments resolves through the prototype chain and writes onto `Object.prototype` / `Function.prototype`.\n\n### Proof of concept\n\n```javascript\nconst mongoose = require('mongoose');\nconst schema = new mongoose.Schema({});\n\nschema.virtual('__proto__.polluted');\nconsole.log(({}).polluted); // VirtualType instance\nconsole.log(Object.prototype.hasOwnProperty('polluted')); // true\nconsole.log(Object.getOwnPropertyDescriptor(\nObject.prototype, 'polluted').enumerable); // true\n\nschema.virtual('constructor.prototype.opol');\nconsole.log(({}).opol); // true\n\nschema.virtual('hasOwnProperty.__proto__.fpol');\nconsole.log((function(){}).fpol); // Function.prototype polluted\n```\n\n### Impact\n\nAttacker-influenced schema field names (dynamic schemas, CMS form builders, schema-as-code) allow pollution of Object.prototype (own, enumerable keys visible on every object — e.g. `({}).isAdmin` checks can be spoofed) and Function.prototype (a known gadget primitive in server-side JS).","state":0,"publishedAt":"2026-11-10T20:46:33+00:00","modifiedAt":"2026-11-10T21:00:03.5274693+00:00","affected":[{"ecosystem":"npm","name":"mongoose","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"6.13.12"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"mongoose","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.8.13"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"mongoose","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"8.0.0"},{"kind":"fixed","version":"8.24.7"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"mongoose","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"9.0.0"},{"kind":"fixed","version":"9.11.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj","https://nvd.nist.gov/vuln/detail/CVE-2026-125118","https://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","https://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","https://github.com/Automattic/mongoose","https://github.com/Automattic/mongoose/releases/tag/6.13.12","https://github.com/Automattic/mongoose/releases/tag/7.8.13","https://github.com/Automattic/mongoose/releases/tag/8.24.7","https://github.com/Automattic/mongoose/releases/tag/9.11.4"],"sourceUrl":"https://github.com/advisories/GHSA-6972-9mcm-vhwj","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-6972-9mcm-vhwj","identifiers":["GHSA-6972-9mcm-vhwj","CVE-2026-125118"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-17T03:27:59.3001864+00:00","complete":true,"records":1781,"lastAttemptAt":"2026-11-17T03:27:59.3001864+00:00","lastSuccessAt":"2026-11-17T03:27:59.5527828+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:27:59.5527836+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-30c3da459c38698a15d626d89e52e03e55e19fc45dae0e6d8d723cbf35472cf4-9d520eefc593439f3ce1302b383f18846689c325ea134364ce2f033d105bca3e","complete":true,"records":426230,"lastAttemptAt":"2026-11-17T03:26:03.3592161+00:00","lastSuccessAt":"2026-11-17T03:26:03.3460581+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:26:03.3592161+00:00","snapshotPublishedAt":"2026-11-17T03:25:53+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2330b80315294257af6bbb5ba00b0bf0","complete":false,"records":13836,"lastAttemptAt":"2026-11-17T03:34:53.4860986+00:00","lastSuccessAt":"2026-11-17T03:34:53.479+00:00","error":"129 identifier lookups failed; latest failures include AccessDenied (HTTP 403). Other identifiers were checked independently.","lastVerifiedAt":"2026-11-17T03:34:53.479+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13650,"expectedIdentifiers":13890,"failedIdentifiers":129},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-17T03:27:59.3001864+00:00","complete":true,"records":1125,"lastAttemptAt":"2026-11-17T03:27:59.3001864+00:00","lastSuccessAt":"2026-11-17T03:27:59.5536032+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:27:59.5536035+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-8fe42df9ddaa47a5bde948a2904896ae","complete":true,"records":13849,"lastAttemptAt":"2026-11-17T03:28:01.1364166+00:00","lastSuccessAt":"2026-11-17T03:28:01.122+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:28:01.122+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13890,"expectedIdentifiers":13890,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-db3ae05f3e19425298b475ceb81e33f22d67df93dfef77c2b0200c8b05fd85ae","complete":true,"records":9958,"lastAttemptAt":"2026-11-17T03:27:59.168792+00:00","lastSuccessAt":"2026-11-16T23:31:31.5526753+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:27:59.168792+00:00","snapshotPublishedAt":"2026-11-16T22:48:36+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-f4424d7d4861b1af1404bd15abcb83f295dcd003412a9340ca99dc8200aa148a","complete":true,"records":2014,"lastAttemptAt":"2026-11-17T03:26:03.4187172+00:00","lastSuccessAt":"2026-11-13T19:57:08.2864435+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:26:03.4187172+00:00","snapshotPublishedAt":"2026-11-13T19:33:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-6086d649bcb454cdf302d7d9275177bda73550e1b6e446b3520e9b6266d3582c","complete":true,"records":3148,"lastAttemptAt":"2026-11-17T03:27:59.1865875+00:00","lastSuccessAt":"2026-11-15T11:05:17.1034234+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:27:59.1865875+00:00","snapshotPublishedAt":"2026-11-15T10:03:04+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-68251c5be188ac024e6e2a3c0743b593bc1080ccb4c8dc5f887785cf7ea05d9e","complete":true,"records":232570,"lastAttemptAt":"2026-11-17T03:27:59.0324127+00:00","lastSuccessAt":"2026-11-17T03:27:57.5016286+00:00","error":null,"lastVerifiedAt":"2026-11-17T03:27:59.0324127+00:00","snapshotPublishedAt":"2026-11-17T03:03:23+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}