Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-42334

HIGH 7.5EPSS 32%

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

Also known as BIT-mongoose-2026-42334, GHSA-wpg9-53fq-2r8h

Mitigation

  • Upgrade mongoose to one of 6.13.9, 7.8.9, 8.22.1, 9.1.6 (or later in the same release line).

Who should check

  • Projects that depend on npm package mongoose (< 6.13.9)
  • Anyone running Automattic mongoose < 6.13.9; >= 7.0.0, <= 7.8.8; >= 8.0.0, <= 8.22.0; >= 9.0.0, <= 9.1.5

Vulnerability facts

Affected
mongoose < 6.13.9
Fixed in
6.13.9, 7.8.9, 8.22.1, 9.1.6
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: None
  • Availability impact: None
EPSS
0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
CWE
CWE-74
Published
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.

Affected and fixed versions

Package / productAffectedFixedSource
npm mongoose< 6.13.96.13.9, 7.8.9, 8.22.1, 9.1.6osv
Automattic mongoose< 6.13.9; >= 7.0.0, <= 7.8.8; >= 8.0.0, <= 8.22.0; >= 9.0.0, <= 9.1.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-42334. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-42334.md
Affected: mongoose < 6.13.9
Fixed in: 6.13.9, 7.8.9, 8.22.1, 9.1.6

Steps:
1. Search this machine and project for mongoose (npm), Automattic mongoose: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-42334 being exploited?

There is no confirmed exploitation: CVE-2026-42334 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-42334?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

Which versions are affected by CVE-2026-42334?

mongoose < 6.13.9.

Is there a fix for CVE-2026-42334?

Yes. Fixed in 6.13.9, 7.8.9, 8.22.1, 9.1.6. Upgrade mongoose to one of 6.13.9, 7.8.9, 8.22.1, 9.1.6 (or later in the same release line).

How do I check if I'm affected by CVE-2026-42334?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors