Mongoose: sanitizeFilter not applied on countDocuments
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Automattic | mongoose | affected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Automattic | Mongoose |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-pcrw-h46h-c93h | Mongoose: sanitizeFilter not applied on countDocuments |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.566% probability within 30 days)
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Automattic
Automattic mongoose |
|
| Vendors & Products |
Automattic
Automattic mongoose |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Prior to 6.13.11, 7.8.12, 8.24.3, and 9.9.2, Mongoose countDocuments() does not apply the configured sanitizeFilter query selector injection defense. An application that enables sanitizeFilter and passes attacker-controlled filter values to countDocuments() can therefore process query operator objects as operators rather than literal values, causing the count to include documents that should not match and potentially undermining authorization or application logic based on that count. This issue is fixed in versions 6.13.11, 7.8.12, 8.24.3, and 9.9.2. | |
| Title | Mongoose: sanitizeFilter not applied on countDocuments | |
| Weaknesses | CWE-943 | |
| References |
|
|
| Metrics |
cvssV3_1
|