Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`
Summary
| CVE | CVE-2026-142595 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-12-02 22:18:36 UTC |
| Updated | 2026-12-02 22:18:37 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 6.5 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Problem Types: CWE-943 | CWE-943 CWE-943: Improper Neutralization of Special Elements in Data Query Logic
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
| 3.1 | CNA | DECLARED | 6.5 | MEDIUM | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Automattic | Mongoose | affected >= 6.0.0, < 6.13.13 | Not specified |
| CNA | Automattic | Mongoose | affected >= 7.0.0, < 7.8.14 | Not specified |
| CNA | Automattic | Mongoose | affected >= 8.0.0, < 8.24.10 | Not specified |
| CNA | Automattic | Mongoose | affected >= 9.0.0, < 9.12.2 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece5... | [email protected] | github.com | |
| github.com/Automattic/mongoose/releases/tag/7.8.14 | [email protected] | github.com | |
| github.com/Automattic/mongoose/security/advisories/GHSA-25v4-hrwm-qj9f | [email protected] | github.com | |
| github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f2... | [email protected] | github.com | |
| github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea060... | [email protected] | github.com | |
| github.com/Automattic/mongoose/releases/tag/8.24.10 | [email protected] | github.com | |
| github.com/Automattic/mongoose/releases/tag/9.12.2 | [email protected] | github.com | |
| github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493d... | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.