CVE-2026-142595 — Automattic mongoose
One of 3 Automattic mongoose vulnerabilities published together by NVD: our article covers all of them.
DatabasesIdentity & authVulnerabilitiesResearch article
Mongoose Vulnerability Enables Query Logic Bypass in MongoDB Applications
| CVE | CVE-2026-142595 |
|---|---|
| Vendor and product | Automattic mongoose |
| Published | December 04, 2026 00:25 UTC |
| Research cut-off | December 04, 2026 00:10 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-12-03); CISA KEV catalog; GitHub advisory (2026-12-04); FIRST EPSS (2026-12-03) |
Executive summary
CVE-2026-142595 impacts Mongoose versions prior to 6.13.13, 7.8.14, 8.24.10, and 9.12.2, enabling attackers to bypass authentication and access sensitive data through flawed query sanitization [1]. The CVSS 3.1 score is 6.5 MEDIUM, with a high confidentiality impact [1]. The reviewed sources do not report exploitation [2]. The recommended action is to update to the fixed versions [1].
Key points
- CVE-2026-142595 impacts Mongoose versions before 6.13.13, 7.8.14, 8.24.10, and 9.12.2 [1].
- The vulnerability allows attackers to bypass authentication and access sensitive data through query filters [1].
- The CVSS 3.1 score is 6.5 MEDIUM, with a high confidentiality impact [1].
- CVE-2026-142595 is not listed in the CISA KEV catalog as of 2026-12-04 [2].
- The EPSS score estimates a 0.56% probability of exploitation within the next 30 days [4].
Vulnerability identification
| Field | Value |
|---|---|
| CVE ID | CVE-2026-142595 |
| Vendor | Automattic |
| Product | mongoose |
| CWE | CWE-943 |
| CVSS 3.1 | 6.5 MEDIUM, scored by security-advisories@github.com (Secondary) |
| Published | 2026-12-02T22:18:36 |
| Last Modified | 2026-12-03T17:18:04 |
| Record Status | Awaiting Analysis |
Vulnerability description
Mongoose's sanitizeFilter function does not fully inspect certain undocumented operators, allowing attackers to insert nested query selectors such as $ne or $regex. This can lead to bypassing authentication, exposing confidential data, or making unintended changes to the database [1].
Attack surface and exploitation prerequisites
The CVSS vector indicates the vulnerability requires network access (AV:N), high attack complexity (AC:H), no privileges (PR:N), and no user interaction (UI:N) [1]. Exploitation requires that the app forwards filter object keys controlled by an attacker into database queries while depending on sanitizeFilter to protect it [1].
Impact analysis
The CVSS vector shows a high confidentiality impact (C:H), low integrity impact (I:L), and no availability impact (A:N). The flaw may allow unauthorized access to sensitive data and unintended data modifications [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| mongoose >= 6.0.0, < 6.13.13 | 6.13.13 |
| mongoose >= 7.0.0, < 7.8.14 | 7.8.14 |
| mongoose >= 8.0.0, < 8.24.10 | 8.24.10 |
| mongoose >= 9.0.0, < 9.12.2 | 9.12.2 |
Exploitation and threat intelligence status
CVE-2026-142595 is not listed in the CISA KEV catalog as of 2026-12-04 [2]. The EPSS score estimates a 0.56% chance of exploitation within the next 30 days [4].
Detection and exposure assessment
Verify if your installed version of mongoose is in the vulnerable range: >= 6.0.0, < 6.13.13; >= 7.0.0, < 7.8.14; >= 8.0.0, < 8.24.10; or >= 9.0.0, < 9.12.2 [1].
Remediation
Upgrade to mongoose versions 6.13.13, 7.8.14, 8.24.10, or 9.12.2 to resolve the issue [1].
Remediation checklist
- Upgrade mongoose to version 6.13.13, 7.8.14, 8.24.10, or 9.12.2 [1].
- Review application logic to ensure query filters are not constructed from untrusted input (general guidance, not from the sources).
- Monitoring system logs for unusual query patterns may help spot exploitation (general guidance, not from the sources).
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not describe a scenario in which the flaw is exploited.
- The sources do not provide indicators of compromise.
- The sources do not describe how the flaw works beyond the CWE.
References
- CVE-2026-142595 record. NIST National Vulnerability Database (NVD), 2026-12-03. https://nvd.nist.gov/vuln/detail/CVE-2026-142595. Accessed 2026-12-04.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-12-04. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-12-04.
- GHSA-25v4-hrwm-qj9f. GitHub Security Advisory Database, 2026-12-04. https://github.com/advisories/GHSA-25v4-hrwm-qj9f. Accessed 2026-12-04.
- EPSS score for CVE-2026-142595. FIRST, 2026-12-03. https://api.first.org/data/v1/epss?cve=CVE-2026-142595. Accessed 2026-12-04.
Summary
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.
Severity breakdown
Medium · 6.5
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on confidentiality, low on integrity, none on availability
Weakness
- CWE-943: Improper Neutralization of Special Elements in Data Query Logic
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| mongoose (npm) | < 6.13.13 | 6.13.13 |
| ≥ 7.0.0, < 7.8.14 | 7.8.14 | |
| ≥ 8.0.0, < 8.24.10 | 8.24.10 | |
| ≥ 9.0.0, < 9.12.2 | 9.12.2 | |
| Automattic mongoose | >= 6.0.0, < 6.13.13, >= 7.0.0, < 7.8.14, >= 8.0.0, < 8.24.10, >= 9.0.0, < 9.12.2 | — |
References by type
Vendor advisories
Patches and fixed releases
- github.com/Automattic/mongoose/commit/34e76947cc8a9ceb916c233aec01aea06…
- github.com/Automattic/mongoose/commit/3e5f4c8b30ef42db1ab9f2794dc77c95f…
- github.com/Automattic/mongoose/commit/4627d2fc572a943ee7afe26a1bcebe493…
- github.com/Automattic/mongoose/commit/c6a4c95f9b15d81a352f2934c91b64ece…
- github.com/Automattic/mongoose/releases/tag/7.8.14
- github.com/Automattic/mongoose/releases/tag/8.24.10
- github.com/Automattic/mongoose/releases/tag/9.12.2
Other references
Affected
- Automattic mongoose
Frequently asked questions
What is CVE-2026-142595?
CVE-2026-142595 impacts Mongoose versions prior to 6.13.13, 7.8.14, 8.24.10, and 9.12.2, enabling attackers to bypass authentication and access sensitive data through flawed query sanitization. The CVSS 3.1 score is 6.5 MEDIUM, with a high confidentiality impact. The reviewed sources do not report exploitation. The recommended action is to update to the fixed versions. Weakness type: Improper Neutralization of Special Elements in Data Query Logic (CWE-943).
How severe is CVE-2026-142595?
CVE-2026-142595 has a CVSS 3.1 base score of 6.5 (medium), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-142595 being exploited?
Not as far as is known: CVE-2026-142595 is not in CISA's Known Exploited Vulnerabilities catalog as of December 4, 2026. EPSS estimates a 0.6% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-142595?
mongoose (npm) < 6.13.13 (fixed in 6.13.13); mongoose (npm) ≥ 7.0.0, < 7.8.14 (fixed in 7.8.14); mongoose (npm) ≥ 8.0.0, < 8.24.10 (fixed in 8.24.10); mongoose (npm) ≥ 9.0.0, < 9.12.2 (fixed in 9.12.2); and more, listed on this page.
How do I fix CVE-2026-142595?
Upgrade mongoose to version 6.13.13, 7.8.14, 8.24.10, or 9.12.2. Review application logic to ensure query filters are not constructed from untrusted input (general guidance, not from the sources). Monitoring system logs for unusual query patterns may help spot exploitation (general guidance, not from the sources).
Timeline & sources
References
Related vulnerabilities & news
- CVE-2026-142653 — dbeaver cloudbeaver
- CVE-2026-140383 — thorsten phpMyFAQ
- phpMiniAdmin Authentication Bypass in phpMiniAdmin 1.9.150108–1.9.240801
- CVE-2026-135641 — wpjobportal WP Job Portal – AI-Powered Recruitment System for Company or Job Board website
- AutoGPT Platform Hardcoded Encryption Key Vulnerability