Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`
影響
| パッケージ | 影響する版 | 修正版 |
|---|---|---|
| npm:mongoose | >= 8.5.0, < 8.24.10 | 8.24.10 |
| npm:mongoose | >= 9.0.0, < 9.12.2 | 9.12.2 |
Since Mongoose 8.5.0, the sanitizeProjection option prevents untrusted projections from including fields that the schema deselects with select: false, like password hashes and reset tokens. Several projection forms got around that check, so a user-controlled projection could still return select: false fields even with sanitizeProjection enabled. Mongoose versions before 8.5.0 do not make sanitizeProjection block including select: false keys - hiding select: false keys was a new feature introduc…
重大な脆弱性・障害の速報を X で受け取る悪用・大規模な漏洩・障害を、対処法と一緒に。
@vulnpulse_app をフォロー2026/12/04 09:02、GitHub Advisory Databaseが「Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`」を公開しました (種別: 脆弱性アドバイザリ)。重大度は「重要」(high) です。関連する技術: JavaScript / Node.js。CVE: CVE-2026-142596。