cve.bz

CVE-2026-42334 mongoosejs mongoose: Injection

7.5 highEPSS 0.3%Fix available

High (7.5) in mongoosejs mongoose. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in mongoose 6.13.9, 7.8.9, 8.22.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 20th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-05-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-42334 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-42334?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-42334?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-42334 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
mongoosejs:mongoosebefore 6.13.9
mongoosejs:mongoosefrom 7.0.0 before 7.8.9
mongoosejs:mongoosefrom 8.0.0 before 8.22.1
mongoosejs:mongoosefrom 9.0.0 before 9.1.6

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wpg9-53fq-2r8hnpmmongoose<6.13.96.13.9
GHSA-wpg9-53fq-2r8hnpmmongoose>=7.0.0 <7.8.97.8.9
GHSA-wpg9-53fq-2r8hnpmmongoose>=8.0.0 <8.22.18.22.1
GHSA-wpg9-53fq-2r8hnpmmongoose>=9.0.0 <9.1.69.1.6

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON