{"affected":[{"product":"mongoose","source":"CNA: GitHub_M","vendor":"Automattic","versions":[{"status":"affected","version":">= 8.5.0, < 8.24.10"},{"status":"affected","version":">= 9.0.0, < 9.12.2"}]}],"cveId":"CVE-2026-142596","cwes":["CWE-200"],"description":"Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 8.5.0 until 8.24.10 and 9.12.2, Mongoose's sanitizeProjection can be bypassed by +path selections, object or array aggregation expressions, nested and parent projections, positional projections, $meta, discriminator-specific exclusions, an own __proto__ key, and projection-cast error paths. Applications that pass attacker-controlled data to select(), find(filter, projection), or the projection option while relying on sanitizeProjection can return fields marked select: false, including password hashes, reset tokens, API keys, and nested secrets. Nested exclusion objects, $elemMatch combined with an exclusion or a cast error, and discriminator filters can also cause ordinary queries that do not enable sanitizeProjection to omit the select: false exclusions that Mongoose normally adds. This issue is fixed in versions 8.24.10 and 9.12.2.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":7.5,"severity":"high","source":"CNA: GitHub_M","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"}],"modifiedAt":1796248231552,"publishedAt":1796248231552,"references":[{"source":"CNA: GitHub_M","tags":["x_refsource_CONFIRM"],"url":"https://github.com/Automattic/mongoose/security/advisories/GHSA-xfcm-rmv3-crmq"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/c369da407ee8bea907bb5af7bb94ce5deeb3e0e4"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/commit/c5483b71438ececde3a272feef65e14666614093"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/8.24.10"},{"source":"CNA: GitHub_M","tags":["x_refsource_MISC"],"url":"https://github.com/Automattic/mongoose/releases/tag/9.12.2"}],"remediation":[],"revision":"9a4f79c28a32c2a2180fb6bdf67639e21b84ea771927f5831690fcdd7ac0643d","sources":[{"modifiedAt":1796248231552,"name":"CNA: GitHub_M","retrievedAt":1796249364421,"url":"https://www.cve.org/CVERecord?id=CVE-2026-142596"}],"ssvc":null,"status":"published","title":"Mongoose: sanitizeProjection can be bypassed to include fields deselected with `select: false`","updatedAt":1796249364421}