Skip to main content
VulnerabilityPublished

CVE-2026-125119: Mongoose · Connection-level sanitizeFilter not applied

Affects mongooseSource GCVE Database

0
Compare
Authoritative record:CVE-2026-125119· High 7.5

Not known to be exploited · CVSS 7.5 High : upgrade to 6.13.12 soon.

Data as of 10 Nov 2026, 23:24 UTC

CVSS 3.1 base score
7.5High
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.17.5
EPSS
0.5% chance of exploitation in 30 days – higher than 45% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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:H/I:N/A:N

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.0.0 <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 in Mongoose versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4 that fixes the sanitizeFilter application at the connection level. Users should upgrade to these fixed versions or later. Alternatively, users can mitigate the issue by setting sanitizeFilter globally using mongoose.set('sanitizeFilter') or on individual queries using Model.find().sanitizeFilter(), which are not affected by this vulnerability.

Description

Mongoose versions from 6.0.0 up to but not including 6.13.12, 7.0.0 up to 7.8.13, 8.0.0 up to 8.24.7, and 9.0.0 up to 9.11.4 have a vulnerability where the connection-level sanitizeFilter option is not applied. This option is intended to prevent query selector injection by wrapping operator objects in filters to match them literally. Due to a coding mismatch, the sanitizeFilter setting is reported as enabled but does not actually sanitize queries, allowing attackers to bypass this protection. The vulnerability does not affect users who set sanitizeFilter globally or on specific queries. A fix is available in later versions.

References

Community reviews

Loading reviews…