CVE-2026-142595Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
- 6.5MediumCVSS base score
- 0.83%Exploitation in 30 daysEPSS · top 41% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9f (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
Published
- 1 day later
· 1 day later
Public exploit appeared
A proof of concept or exploit was published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
| NVDNVD · Awaiting Analysis | 3.1 | Medium6.5 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.83% · top 41% of all CVEs (4 Dec 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.5.
Affected products
- affected >= 6.0.0, < 6.13.13
- affected >= 7.0.0, < 7.8.14
- affected >= 8.0.0, < 8.24.10
- affected >= 9.0.0, < 9.12.2
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmmongooseGHSA-25v4-hrwm-qj9f (opens in a new tab)
References
References8
- https://github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9f (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea060bc3dba (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f21d3835 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493dbd2508 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece583c2db (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/7.8.14 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/8.24.10 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/9.12.2 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-141930 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-25v4-hrwm-qj9f (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-142595)Record last updated .