CVE-2026-42334
CVE-2026-42334 is a high-severity vulnerability in Mongoosejs Mongoose with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-74.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- EPSS exploit prediction: 0% (19th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-30349
- Weakness: CWE-74
- Affected product: Mongoosejs Mongoose
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2026-42334?
- 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.
- How severe is CVE-2026-42334?
- CVE-2026-42334 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
- Is CVE-2026-42334 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (19th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-42334?
- CVE-2026-42334 affects Mongoosejs Mongoose. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-42334?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-42334 have an EU (EUVD) identifier?
- Yes. CVE-2026-42334 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-30349.
- When was CVE-2026-42334 published?
- CVE-2026-42334 was published on 2026-05-14 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:*
More vulnerabilities in Mongoosejs Mongoose
- CVE-2023-3696 — Critical (CVSS 9.8): Prototype Pollution in GitHub repository automattic/mongoose prior to 7.3.4.
- CVE-2022-2564 — Critical (CVSS 9.8): Prototype Pollution in GitHub repository automattic/mongoose prior to 6.4.6.
- CVE-2024-53900 — Critical (CVSS 9.1): Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.
- CVE-2019-17426 — Critical (CVSS 9.1): Automattic Mongoose through 5.7.4 allows attackers to bypass access control (in some applications) because any query…
- CVE-2025-23061 — Critical (CVSS 9.0): Mongoose before 8.9.5 can improperly use a nested $where filter with a populate() match, leading to search injection.…
All CVEs affecting Mongoosejs Mongoose →
Other CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-25586 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty…
- CVE-2026-25520 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped.…
- CVE-2025-20265 — Critical (CVSS 10.0): A vulnerability in the RADIUS subsystem implementation of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2025-20337 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2025-20281 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2024-42472 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →