CVE-2026-42334: Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection
Vulnerability summary
CVE-2026-42334 is a high (CVSS 7.5) vulnerability in automattic mongoose. EPSS estimates a 0.27% chance of exploitation in the next 30 days, higher than 21.1% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 14-05-2026PublishedVulnerability first disclosed.
- 14-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.27%
Chance of exploitation in the next 30 days
Percentile
21%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.27% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Automattic1 product
- mongoose< 6.13.9 | ≥ 7.0.0, ≤ 7.8.8 | ≥ 8.0.0, ≤ 8.22.0 | ≥ 9.0.0, ≤ 9.1.5
Mongoosejs1 product
- mongoose< 6.13.9 | ≥ 7.0.0, < 7.8.9 | ≥ 8.0.0, < 8.22.1 | ≥ 9.0.0, < 9.1.6
Npm1 product
- mongoose< 6.13.9 | ≥ 7.0.0, < 7.8.9 | ≥ 8.0.0, < 8.22.1 | ≥ 9.0.0, < 9.1.6
3 vendors · 3 products
References
5 links- github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8hX Refsource CONFIRMWEBMitigationVendor Advisory