Apply sanitizeFilter on countDocuments and cursor()

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

Committed by vkarpov15

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

Editor assessment

This commit patches CVE-2026-125120. The fourth copy of this fix, again stating that sanitizeFilter now applies to countDocuments and cursor(). Type, scope and imperative style are correct, and the subject is specific enough to locate the change without a body. No body is provided, so the security reasoning and the prior gap remain implicit, and the four sibling commits cannot be told apart by their messages. Valid and scannable; a single shared body paragraph explaining that find was already sanitized while count and cursor were not, and what an unsanitized operator payload could reach, would improve all four copies at once.

Browse categories

More fix examples · Back to search