Mongoose: Connection-level sanitizeFilter not applied
CVE-2026-125119Published 9 Nov 2026, 22:32 UTC
Real-world risk
6.8/ 10Medium
Schedule in the normal cycle
PreliminaryFrom the CVSS vector only · confidence low
CVSS
7.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.prototype._castConditions() and query casting check other option locations and do not read that configuration. An application that enables sanitizeFilter through mongoose.connect() or createConnection() and passes an attacker-controlled object into a query filter therefore receives a connection that reports the defense as enabled while query selector objects remain unsanitized. A crafted password value using a query operator can match an account record without the expected literal password, while global configuration through mongoose.set('sanitizeFilter') and per-query Model.find().sanitizeFilter() remain unaffected. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| mongooseNiche | >= 6.0.0, < 6.13.12; >= 7.0.0, < 7.8.13; >= 8.0.0, < 8.24.7; >= 9.0.0, < 9.11.4 | 6.13.12, 7.8.13, 8.24.7, 9.11.4 |
What to do
Update to a fixed version: 6.13.12, 7.8.13, 8.24.7, 9.11.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.7% chance of exploitation in 30 days (percentile 55), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 1 × threat 0.856.800
- Rounded to one decimal between 0.1 and 106.8
Exploitation and evidence timeline
- 9 Nov 2026 Published
- 3 Dec 2026 Risk 6.8 (cvss fallback)
Weakness
CWE-943
References
- https://github.com/Automattic/mongoose/security/advisories/GHSA-gg4r-jv3p-qx3cvendor-advisory
- https://github.com/Automattic/mongoose/commit/4bb659478be2f30655a7bdd78bc251bdf111cd29misc
- https://github.com/Automattic/mongoose/commit/4f4f9a79f860786a54133bee2c9af967ec691491misc
- https://github.com/Automattic/mongoose/commit/83eda6af1489e9ef60bb8eee8cf9ee005771b9d5misc
- https://github.com/Automattic/mongoose/commit/b8970c25998c23fbccd17f76c0398b902ff4911dmisc
- https://github.com/Automattic/mongoose/releases/tag/6.13.12misc
- https://github.com/Automattic/mongoose/releases/tag/7.8.13misc
- https://github.com/Automattic/mongoose/releases/tag/8.24.7misc
- https://github.com/Automattic/mongoose/releases/tag/9.11.4misc
- CVE-2026-125119 on CVE.org