CVE-2026-42334

Mongoose: Improper Sanitization of $nor in sanitizeFilter May Allow NoSQL Injection

HIGH
7.5
CVSS Score
Published: May 14, 2026 at 06:03 PM UTC
Updated: October 26, 2026 at 02:10 PM UTC
2 products affected across 2 vendorsMongooseMongoose

Using mongoose by Automattic?

Get instant alerts when new vulnerabilities affect mongoose - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 6.13.97.0.0 ≤ v < 7.8.98.0.0 ≤ v < 8.22.19.0.0 ≤ v < 9.1.6
v < 6.13.9
Affected range stops below 6.13.9, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (1)

x_refsource_CONFIRMMitigationVendor Advisory
Source: cverecord
https://github.com/Automattic/mongoose/security/advisories/GHSA-wpg9-53fq-2r8h

SSVC — Action Prioritization

SSVCNo known exploitAutomatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-74

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card