緊急
mongoose countDocuments() skips filter sanitizing, miscounting documents
CVE-2026-125120
Document counts in a MongoDB connection tool can be manipulated!
- CVE
- CVE-2026-125120(新しいタブで開きます)
- スコア
- CVSS 9.8
- 初確認
9.8
対処法
Update to 6.13.11, 7.8.12, 8.24.3 or 9.9.2, matching the major version you use.
製品別の修正バージョン
- Automattic Mongoose 6
- 6.13.11 以降
- Automattic Mongoose 7
- 7.8.12 以降
- Automattic Mongoose 8
- 8.24.3 以降
- Automattic Mongoose 9
- 9.9.2 以降
要約
mongoose's countDocuments() does not apply the sanitizeFilter defense, so attacker-supplied filter values can be processed as query operators. Apps that enable sanitizeFilter and pass attacker-controlled filters to this function are affected.
該当する条件
- sanitizeFilter option enabled
- attacker-controlled filter values passed to countDocuments()
製品別のインシデント: Automattic mongoose
Automattic mongoose のほかの最近のインシデント
勧告を読む · github.com(新しいタブで開きます)
- セキュリティ勧告: github.com(新しいタブで開きます)
- CVE レコード: cve.org(新しいタブで開きます)