CVE-2026-125119: Mongoose · Connection-level sanitizeFilter not applied
Affects mongooseSource GCVE Database
Not known to be exploited · CVSS 7.5 High : upgrade to 6.13.12 soon.
Data as of 10 Nov 2026, 23:24 UTC
Thin evidence
One scorer or none| CNA (GitHub_M) | CVSS 3.1 | 7.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:NExploitation 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 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
- github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3c (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-125119 (opens in a new tab)
- github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29 (opens in a new tab)
- github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491 (opens in a new tab)
- github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5 (opens in a new tab)
- github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911d (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)