Apply sanitizeFilter in countDocuments and cursor

fix(query): apply sanitizeFilter in countDocuments and cursor
Apply sanitizeFilter in countDocuments and cursor7e912a-fix-apply-sanitizefilter-in-countdocuments-and-cursor-cve-2026-125120fixapply sanitizefilter countdocuments cursor query

Committed by vkarpov15

commit message
fix(query): apply sanitizeFilter in countDocuments and cursor

Editor assessment

This commit patches CVE-2026-125120. The subject names the fix and both affected entry points, countDocuments and cursor, which is the useful part: it tells a reader exactly where sanitizeFilter is now applied. What it does not say is why - whether sanitization was previously limited to find, and what an unsanitized operator payload could achieve through a count or a cursor. With no body, a reviewer must reconstruct that from the diff. Accurate and scannable, but it stops at the what. The four sibling commits suggest a shared rationale was written once and never carried over.

Browse categories

More fix examples · Back to search