← 脆弱性・アップデート

警告脆弱性アドバイザリJavaScript / Node.jsMongoDB

Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`

影響

パッケージ影響する版修正版
npm:mongoose< 6.13.136.13.13
npm:mongoose>= 7.0.0, < 7.8.147.8.14
npm:mongoose>= 8.0.0, < 8.24.108.24.10
npm:mongoose>= 9.0.0, < 9.12.29.12.2

Mongoose's sanitizeFilter option is meant to block query selector injection. Before this fix, it only refused four top-level operators by name: $jsonSchema, $where, $expr and $text. Any other top-level $ operator was passed to MongoDB unchanged. That includes undocumented internal operators like $_internalSchemaXor and $_internalSchemaCond, which take sub-filters, and sanitizeFilter never inspected those sub-filters. An attacker who controls the keys of a query filter could use them to slip arb…

GitHub Advisory Databaseで読む

2026/12/04 09:05、GitHub Advisory Databaseが「Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「警告」(medium) です。関連する技術: JavaScript / Node.js、MongoDB。CVE: CVE-2026-142595。