Home / Automattic / mongoose / CVE-2026-42334
CVE-2026-42334: is it exploited, and which versions of Automattic mongoose are affected and fixed?
CVE-2026-42334 is an injection vulnerability in Automattic mongoose. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 14:08 UTC). Affected: mongoose before 6.13.9, mongoose from 7.0.0 before 7.8.9, mongoose from 8.0.0 before 8.22.1 and 1 more (GitHub advisory GHSA-wpg9-53fq-2r8h). Fixed in 6.13.9, 7.8.9, 8.22.1 and 9.1.6 (GitHub advisory GHSA-wpg9-53fq-2r8h). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 14:08 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-42334?
Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.9, 7.8.9, 8.22.1, and 9.1.6, a vulnerability allows bypassing Mongoose’s sanitizeFilter query sanitization mechanism via the $nor operator. When sanitizeFilter is enabled, Mongoose wraps query operators in $eq to neutralize them. However, prior to the fix, $nor was not included in the set of logical operators that are recursively sanitized. Because $nor accepts an array (like $and and $or), and arrays do not trigger hasDollarKeys(), malicious operators such as $ne, $gt, or $regex could be injected inside a $nor clause without being sanitized. This vulnerability is fixed in 6.13.9, 7.8.9, 8.22.1, and 9.1.6.
From the CVE record by GitHub_M, last updated May 14, 2026, 18:18 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Automattic | mongoose | < 6.13.9 >= 7.0.0, <= 7.8.8 >= 8.0.0, <= 8.22.0 >= 9.0.0, <= 9.1.5 |
As the CVE record by GitHub_M states it, last updated May 14, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| npm | mongoose | < 6.13.9 | 6.13.9 | GHSA-wpg9-53fq-2r8h |
| npm | mongoose | >= 7.0.0, < 7.8.9 | 7.8.9 | GHSA-wpg9-53fq-2r8h |
| npm | mongoose | >= 8.0.0, < 8.22.1 | 8.22.1 | GHSA-wpg9-53fq-2r8h |
| npm | mongoose | >= 9.0.0, < 9.1.6 | 9.1.6 | GHSA-wpg9-53fq-2r8h |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 14, 2026. Summary: Mongoose's Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| mongoosejs | mongoose | before 6.13.9 | application |
| mongoosejs | mongoose | from 7.0.0 before 7.8.9 | application |
| mongoosejs | mongoose | from 8.0.0 before 8.22.1 | application |
| mongoosejs | mongoose | from 9.0.0 before 9.1.6 | application |
NVD analysis (status Analyzed), last modified October 26, 2026, 14:10 UTC.
How severe is CVE-2026-42334?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-42334 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, May 14, 2026)
- EPSS
- 0.27% probability of exploitation activity in the next 30 days, percentile 21.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
Where are the vendor advisories and references?
- https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- April 26, 2026
- Published
- May 14, 2026, 18:03 UTC
- CVE record updated
- May 14, 2026, 18:18 UTC by GitHub_M
- NVD
- Analyzed, last modified October 26, 2026, 14:10 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 14:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect mongoose?
- Dec 2, 2026CVE-2026-142608 Automattic mongoose: type confusion
- Dec 2, 2026CVE-2026-142596 Automattic mongoose: information disclosure
- Dec 2, 2026CVE-2026-142595 Automattic mongoose: improper Neutralization of Special Elements in Data Query Logic
- Nov 9, 2026CVE-2026-125120 Automattic mongoose: improper Neutralization of Special Elements in Data Query Logic
- Nov 9, 2026CVE-2026-125119 Automattic mongoose: improper Neutralization of Special Elements in Data Query Logic
- Nov 9, 2026CVE-2026-125118 Automattic mongoose: prototype pollution
- Nov 9, 2026CVE-2026-125117 Automattic mongoose: prototype pollution
- Nov 9, 2026CVE-2026-125116 Automattic mongoose: type confusion
Questions about CVE-2026-42334
Is CVE-2026-42334 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 14:08 UTC. FIRST's EPSS gives it a 0.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Automattic mongoose are affected by CVE-2026-42334?
mongoose before 6.13.9, mongoose from 7.0.0 before 7.8.9, mongoose from 8.0.0 before 8.22.1 and mongoose from 9.0.0 before 9.1.6, per the GitHub advisory GHSA-wpg9-53fq-2r8h. The tables above give every range the sources list.
Which version fixes CVE-2026-42334?
6.13.9, 7.8.9, 8.22.1 and 9.1.6, per the GitHub advisory GHSA-wpg9-53fq-2r8h. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-42334?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-42334?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.