製品・ソフトウェアに関する情報
mongoosejsのmongooseにおけるインジェクションに関する脆弱性
Title mongoosejsのmongooseにおけるインジェクションに関する脆弱性
Summary

Mongooseは非同期環境で動作することを目的としたMongoDBのオブジェクトモデリングツールです。6.13.9、7.8.9、8.22.1、および9.1.6より前のバージョンには、$nor演算子を介してMongooseのsanitizeFilterクエリサニタイズ機構を回避できる脆弱性が存在していました。sanitizeFilterが有効な場合、Mongooseはクエリ演算子を$eqでラップして無効化します。しかし、修正前は$norが再帰的にサニタイズされる論理演算子のセットに含まれていませんでした。$norは$andや$orのように配列を受け入れ、配列はhasDollarKeys()をトリガーしないため、悪意のある演算子($ne、$gt、$regexなど)を$nor句内に注入してもサニタイズされませんでした。この脆弱性は6.13.9、7.8.9、8.22.1、および9.1.6で修正されています。

Possible impacts 当該ソフトウェアが扱う全ての情報が外部に漏れる可能性があります。 また、当該ソフトウェアが扱う情報について、書き換えは発生しません。 さらに、当該ソフトウェアは停止しません。 そして、この脆弱性を悪用した攻撃の影響は、他のソフトウェアには及びません。 
Solution

正式な対策が公開されています。ベンダ情報を参照して適切な対策を実施してください。

Publication Date May 14, 2026, midnight
Registration Date May 18, 2026, 11:30 a.m.
Last Update May 18, 2026, 11:30 a.m.
CVSS3.0 : 重要
Score 7.5
Vector CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected System
mongoosejs
mongoose 6.13.9 未満
mongoose 7.0.0 以上 7.8.9 未満
mongoose 8.0.0 以上 8.22.1 未満
mongoose 9.0.0 以上 9.1.6 未満
CVE (情報セキュリティ 共通脆弱性識別子)
CWE (共通脆弱性タイプ一覧)
ベンダー情報
Change Log
No Changed Details Date of change
1 [2026年05月18日]
  掲載
May 18, 2026, 11:30 a.m.

NVD Vulnerability Information
CVE-2026-42334
Summary

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.

Publication Date May 15, 2026, 3:16 a.m.
Registration Date May 15, 2026, 4:25 a.m.
Last Update May 16, 2026, 3:25 a.m.
Affected software configurations
Configuration1 or higher or less more than less than
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* 6.13.9
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* 7.0.0 7.8.9
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* 8.0.0 8.22.1
cpe:2.3:a:mongoosejs:mongoose:*:*:*:*:*:node.js:*:* 9.0.0 9.1.6
Related information, measures and tools
Common Vulnerabilities List