{"id":"ghsa-ghsa-xfcm-rmv3-crmq","seq":13099062,"kind":"advisory","title":"Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`","url":"https://github.com/advisories/GHSA-xfcm-rmv3-crmq","permalink":"https://vulnpulse.app/items/ghsa-ghsa-xfcm-rmv3-crmq","summary":"影響: npm:mongoose >= 8.5.0, < 8.24.10 → 8.24.10, npm:mongoose >= 9.0.0, < 9.12.2 → 9.12.2\nSince 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…","severity":"high","cvss":null,"techs":["nodejs"],"cves":["CVE-2026-142596"],"tags":["GHSA-xfcm-rmv3-crmq","mongoose","mongoose"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-04T00:02:36.000Z","fetched_at":"2026-12-05T02:20:50.705Z"}