CVE-2026-125118: Mongoose · Prototype pollution via Schema.prototype.virtual()
Affects mongooseSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 6.5 Medium : upgrade to 6.13.12 when convenient.
Data as of 10 Nov 2026, 21:07 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 6.5 |
|---|
- Patch
- Available – fixed in 6.13.12, 7.8.13, 8.24.7 +1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:LExploitation evidence
Disclosed: evidence found.
CVE published 9 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 10 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmongoose | Affected
| Fixed in
|
| npmmongoose | Affected
| Fixed in
|
| npmmongoose | Affected
| Fixed in
|
| npmmongoose | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been released in Mongoose versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4. Users should upgrade to these or later versions to remediate the vulnerability. No alternative mitigations are specified. Since this is a prototype pollution vulnerability exploitable via attacker-controlled schema field names, avoiding untrusted input in schema definitions is recommended until patched.
Description
Mongoose versions prior to 6.13.12, 7.0.0 to before 7.8.13, 8.0.0 to before 8.24.7, and 9.0.0 to before 9.11.4 contain a prototype pollution vulnerability via the Schema.prototype.virtual() method. This vulnerability allows attacker-controlled schema field names to modify Object.prototype and Function.prototype, potentially affecting all objects and functions in the environment. The issue persists because the 2022 fix for similar vulnerabilities did not cover the virtual() method. A patch is available in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
References
- github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-125118 (opens in a new tab)
- github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1 (opens in a new tab)
- github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467 (opens in a new tab)
- github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff (opens in a new tab)
- github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9 (opens in a new tab)
- github.com/Automattic/mongoose (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/6.13.12 (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/7.8.13 (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/8.24.7 (opens in a new tab)
- github.com/Automattic/mongoose/releases/tag/9.11.4 (opens in a new tab)