Exploited now
Vulnerability WatchVulnerabilities, exploits & advisories — updated every 15 minutes
Alerts

Home › CVE › Databases

CVE-2026-142595 — Automattic mongoose

Medium · CVSS 6.5EPSS 0.6% First seen December 02, 2026

One of 3 Automattic mongoose vulnerabilities published together by NVD: our article covers all of them.

DatabasesIdentity & authVulnerabilities

Research article

Mongoose Vulnerability Enables Query Logic Bypass in MongoDB Applications

CVECVE-2026-142595
Vendor and productAutomattic mongoose
PublishedDecember 04, 2026 00:25 UTC
Research cut-offDecember 04, 2026 00:10 UTC
Sources reviewed4: 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

FieldValue
CVE IDCVE-2026-142595
VendorAutomattic
Productmongoose
CWECWE-943
CVSS 3.16.5 MEDIUM, scored by security-advisories@github.com (Secondary)
Published2026-12-02T22:18:36
Last Modified2026-12-03T17:18:04
Record StatusAwaiting 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 VersionFixed Version
mongoose >= 6.0.0, < 6.13.136.13.13
mongoose >= 7.0.0, < 7.8.147.8.14
mongoose >= 8.0.0, < 8.24.108.24.10
mongoose >= 9.0.0, < 9.12.29.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

  1. Upgrade mongoose to version 6.13.13, 7.8.14, 8.24.10, or 9.12.2 [1].
  2. Review application logic to ensure query filters are not constructed from untrusted input (general guidance, not from the sources).
  3. 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

  1. 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. CVE record, CVSS scores, affected versions, vulnerability description
  2. 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. Exploitation status
  3. GHSA-25v4-hrwm-qj9f. GitHub Security Advisory Database, 2026-12-04. https://github.com/advisories/GHSA-25v4-hrwm-qj9f. Accessed 2026-12-04. CVSS scores, affected versions, fixed versions
  4. 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. EPSS score and date

Written with AI assistance from the 4 sources listed above, as of the research cut-off; each fact is cited to its source. Check the vendor's advisory before acting.

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.

Description: NIST National Vulnerability Database (public domain)

Severity breakdown

Medium · 6.5 CVSS 3.1 base score 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.

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

Vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N

Weakness

  • CWE-943: Improper Neutralization of Special Elements in Data Query Logic

Affected and fixed versions

ProductAffected versionsFixed in
mongoose (npm)< 6.13.136.13.13
≥ 7.0.0, < 7.8.147.8.14
≥ 8.0.0, < 8.24.108.24.10
≥ 9.0.0, < 9.12.29.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—

From the GitHub Advisory Database and the vendor's CVE record; confirm with the vendor advisory before relying on a version number.

References by type

Vendor advisories

Patches and fixed releases

Other references

Details from NVD (public domain), the GitHub Advisory Database (CC BY 4.0).

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