This is a broken security control, not a missing one. MongoDB already implemented query redaction for its monitoring interface — the mechanism exists — but an improper conditional check in the sharded cluster router fails to trigger it for search queries. If you're running a sharded MongoDB deployment, your monitoring interface can leak search query literals to any user with monitoring privileges, even though the same interface correctly redacts standard CRUD queries.
The specificity to sharded clusters matters enormously for prioritization. In a single-node deployment, this exposes one database's activity to one role. In a sharded cluster, the bypass occurs at the router level — meaning query literals from every shard and every namespace routing through that router become visible. This is a blast radius multiplier that standard severity scores don't capture.
The search query specificity compounds this further. Standard query literals might expose record IDs or timestamps — mundane values. Search query literals expose user intent: what people are actively investigating, researching, or querying for. In workloads involving full-text or vector search, those literals often represent the highest-value intelligence in your system. An adversary with monitoring access in this context isn't just seeing queries — they're seeing what other users are trying to find.
Your first check: determine if your MongoDB deployment uses sharding. If it does, audit who holds monitoring privileges and treat that access as significantly more sensitive than a generic observability role. The CVSS 6.5 treats this as moderate risk, but that scoring assumes monitoring accounts are trusted service accounts operating within a single trust boundary. In shared or multi-tenant environments — including MongoDB Atlas — the risk profile is substantially higher.
The fix corrects the conditional in the serialization logic, not the redaction mechanism itself. The capability was always present; the code simply failed to apply it to search queries routed through the sharded router. This is a predictable failure mode: security logic written against a closed vocabulary of query types, then bypassed when new query categories (search) entered the pipeline without updating that vocabulary. Treat this as evidence that security-critical conditionals need coverage against all supported query types — not just the ones that existed when the check was written.