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_app2026/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。