# CVE-2026-42334: Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 0% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 6.13.9, 7.8.9, 8.22.1, 9.1.6 (CNA); fix release not confirmed
- Status: published
- Published: 2026-05-14 · Modified: 2026-05-14
- Aliases: GHSA-wpg9-53fq-2r8h, BIT-mongoose-2026-42334
- Record: https://cvemate.com/vulnerability/CVE-2026-42334 · JSON: https://cvemate.com/vulnerability/CVE-2026-42334/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.274%, percentile 21.132%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- automattic mongoose: \< 6.13.9 \| ≥ 7.0.0, ≤ 7.8.8 \| ≥ 8.0.0, ≤ 8.22.0 \| ≥ 9.0.0, ≤ 9.1.5
- mongoosejs mongoose: \< 6.13.9 \| ≥ 7.0.0, \< 7.8.9 \| ≥ 8.0.0, \< 8.22.1 \| ≥ 9.0.0, \< 9.1.6
- Npm mongoose (Npm): \< 6.13.9 \| ≥ 7.0.0, \< 7.8.9 \| ≥ 8.0.0, \< 8.22.1 \| ≥ 9.0.0, \< 9.1.6

## References

- <https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-42334>
- <https://github.com/Automattic/mongoose>
- <https://mongoosejs.com/docs/api/mongoose.html#Mongoose.prototype.sanitizeFilter()>
- <https://thecodebarbarian.com/whats-new-in-mongoose-6-sanitizefilter.html>

---

Data as of 2026-12-05T13:09:40.354Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
