Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
CVE-2026-142595GHSA-25v4-hrwm-qj9fPublished 2 Dec 2026, 21:47 UTC
Real-world risk
3.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.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.13, 7.8.14, 8.24.10, and 9.12.2, Mongoose's sanitizeFilter rejects only a small named set of top-level operators and does not recursively inspect undocumented operators such as $_internalSchemaXor and $_internalSchemaCond. Applications that pass attacker-controlled filter keys to queries while relying on sanitizeFilter can therefore accept nested selectors such as $ne or $regex, allowing authentication bypass, disclosure of protected values through boolean queries, or unintended updates and deletions. Applications that construct filters from individual primitive values are not affected by this bypass. This issue is fixed in versions 6.13.13, 7.8.14, 8.24.10, and 9.12.2.
Am I affected?
What to do
Update to a fixed version: 6.13.13, 7.8.14, 8.24.10, 9.12.2.
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 | HardNarrow race, needs an extra info leak, needs a man-in-the-middle position, or must be chained with another bug | From the CVSS vector | 0.45 |
Threat level T3: Public proof of concept (× 0.95)
A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit
- Reference tagged as exploit (link)
- CISA SSVC: proof of concept
EPSS 0.8% chance of exploitation in 30 days (percentile 59), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.450
- Threat T3: Public proof of concept0.950
- 10 × impact 0.8 × prerequisites 0.45 × threat 0.953.420
- Rounded to one decimal between 0.1 and 103.4
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 3.1 (cvss fallback)
- 3 Dec 2026 Reference tagged as exploit first seen
- 3 Dec 2026 CISA SSVC: proof of concept first seen
- 3 Dec 2026 Risk 3.1 → 3.4 (cvss fallback)
Weakness
CWE-943
References
- https://github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9fexploit, vendor-advisory
- https://github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea060bc3dbamisc
- https://github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835misc
- https://github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493dbd2508misc
- https://github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece583c2dbmisc
- https://github.com/Automattic/mongoose/releases/tag/7.8.14misc
- https://github.com/Automattic/mongoose/releases/tag/8.24.10misc
- https://github.com/Automattic/mongoose/releases/tag/9.12.2misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-142595
- https://github.com/advisories/GHSA-25v4-hrwm-qj9f
- CVE-2026-142595 on CVE.org