{"schemaVersion":4,"id":"CVE-2026-125118","aliases":["GHSA-6972-9mcm-vhwj","BIT-mongoose-2026-125118"],"status":"published","duplicateOf":null,"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.","dates":{"published":"2026-11-09T22:29:55.070Z","modified":"2026-11-14T02:27:37.624Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Npm","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","exploitability":10,"impact":4.2,"computed":true}]},"epss":{"probability":0.00605,"percentile":0.50429,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-10T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00605,"percentile":0.50429}],"last30":[{"date":"2026-11-10T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-11T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-12T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-13T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-14T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-15T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-16T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-17T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.004,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00637,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00605,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00605,"percentile":0.50429}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-1321","name":"Improperly Controlled Modification of Object Prototype Attributes","description":"The product receives input from an upstream component that specifies attributes that are to be initialized or updated in an object, but it does not properly control modifications of attributes of the object prototype.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1321.html"}],"affected":[{"vendor":"automattic","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 6.13.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.13.12","endInclusive":false}},{"text":"≥ 7.0.0, < 7.8.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.8.13","endInclusive":false}},{"text":"≥ 8.0.0, < 8.24.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.0.0","startInclusive":true,"end":"8.24.7","endInclusive":false}},{"text":"≥ 9.0.0, < 9.11.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.0.0","startInclusive":true,"end":"9.11.4","endInclusive":false}}],"versionsText":"< 6.13.12 | ≥ 7.0.0, < 7.8.13 | ≥ 8.0.0, < 8.24.7 | ≥ 9.0.0, < 9.11.4","eol":null,"hubHref":"/vendor/automattic/mongoose"},{"vendor":"Npm","product":"mongoose","name":"mongoose","label":"mongoose","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/mongoose","purlType":"npm","versions":[{"text":"< 6.13.12","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"6.13.12","endInclusive":false}},{"text":"≥ 7.0.0, < 7.8.13","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"7.0.0","startInclusive":true,"end":"7.8.13","endInclusive":false}},{"text":"≥ 8.0.0, < 8.24.7","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"8.0.0","startInclusive":true,"end":"8.24.7","endInclusive":false}},{"text":"≥ 9.0.0, < 9.11.4","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"9.0.0","startInclusive":true,"end":"9.11.4","endInclusive":false}}],"versionsText":"< 6.13.12 | ≥ 7.0.0, < 7.8.13 | ≥ 8.0.0, < 8.24.7 | ≥ 9.0.0, < 9.11.4","eol":null,"hubHref":null}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj","label":"github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj","hostname":"github.com","tags":["X Refsource CONFIRM","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","label":"github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","label":"github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","label":"github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","label":"github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/6.13.12","label":"github.com/Automattic/mongoose/releases/tag/6.13.12","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/7.8.13","label":"github.com/Automattic/mongoose/releases/tag/7.8.13","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.7","label":"github.com/Automattic/mongoose/releases/tag/8.24.7","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://github.com/Automattic/mongoose/releases/tag/9.11.4","label":"github.com/Automattic/mongoose/releases/tag/9.11.4","hostname":"github.com","tags":["X Refsource MISC","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-125118","label":"nvd.nist.gov/vuln/detail/CVE-2026-125118","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/Automattic/mongoose","label":"github.com/Automattic/mongoose","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-09T22:29:55.070Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-14T02:27:37.624Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,1,65],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00605,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-14T02:27:37.624Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-14T02:27:37.624Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},{"type":"cvss","source":"osv_npm","date":"2026-11-14T02:27:37.624Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-14T02:27:12.620Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"poc"}],"epss":{"value":0.00605,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T10:02:10.250Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T10:02:10.837Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T10:02:11.033Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T10:01:03.214Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T10:02:08.667Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T10:02:07.694Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T10:11:12.673Z","stale":false,"partial":false}}