CVE-2026-125120

Description

A flaw was found in Mongoose. The countDocuments() function fails to apply the configured sanitizeFilter defense against query selector injection. A remote attacker could exploit this flaw by passing crafted filter queries containing database operator objects instead of literal values. Consequently, this can cause the count to match unintended records, potentially allowing an attacker to bypass authorization checks or subvert application logic that depends on accurate document counts.

Statement

Red Hat Product Security has determined that this vulnerability does not affect any currently supported Red Hat product. This assessment may evolve based on further analysis and discovery. For more information about this vulnerability and the products it affects, please see the linked references.

Understanding the Weakness (CWE)

Integrity

Technical Impact: Unexpected State

Frequently Asked Questions

Want to get errata notifications? Sign up here.