{"id":"ghsa-ghsa-25v4-hrwm-qj9f","seq":13099061,"kind":"advisory","title":"Mongoose: `sanitizeFilter` bypass via MongoDB internal top-level query operators such as `$_internalSchemaXor`","url":"https://github.com/advisories/GHSA-25v4-hrwm-qj9f","permalink":"https://vulnpulse.app/items/ghsa-ghsa-25v4-hrwm-qj9f","summary":"影響: npm:mongoose < 6.13.13 → 6.13.13, npm:mongoose >= 7.0.0, < 7.8.14 → 7.8.14, npm:mongoose >= 8.0.0, < 8.24.10 → 8.24.10, npm:mongoose >= 9.0.0, < 9.12.2 → 9.12.2\nMongoose'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…","severity":"medium","cvss":null,"techs":["nodejs","mongodb"],"cves":["CVE-2026-142595"],"tags":["GHSA-25v4-hrwm-qj9f","mongoose","mongoose","mongoose","mongoose"],"source":{"id":"ghsa","name":"GitHub Advisory Database"},"published_at":"2026-12-04T00:05:04.000Z","fetched_at":"2026-12-05T02:20:50.705Z"}