Skip to main content
VulnerabilityPublished

CVE-2026-125118: Mongoose · Prototype pollution via Schema.prototype.virtual()

Affects mongooseSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-125118· Medium 6.5

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

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 3.16.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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 9 Nov 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmmongooseAffected
  • <6.13.12
Fixed in
  • 6.13.12
npmmongooseAffected
  • >=7.0.0 <7.8.13
Fixed in
  • 7.8.13
npmmongooseAffected
  • >=8.0.0 <8.24.7
Fixed in
  • 8.24.7
npmmongooseAffected
  • >=9.0.0 <9.11.4
Fixed in
  • 9.11.4

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

Community reviews

Loading reviews…