SocWatch

CVE-2026-125120

Kritisch 9,8

Mongoose: sanitizeFilter not applied on countDocuments

CVSS
9,8 (v3.1)
Angriffswahrscheinlichkeit (EPSS)
0,75 % (höher als 56,2 % aller Lücken)
Veröffentlicht
09.11.2026
Zuletzt geändert
13.11.2026

Beschreibung

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.

Betroffene Pakete

Paket Betroffen Behoben in
npm mongoose alle Versionen vor 6.13.11; ab 7.0.0 vor 7.8.12; ab 8.0.0 vor 8.24.3; ab 9.0.0 vor 9.9.2 6.13.11, 7.8.12, 8.24.3, 9.9.2

Quellen

Weitere Kennungen

GHSA-pcrw-h46h-c93h · BIT-mongoose-2026-125120 · CWE-943

Sind Ihre Projekte betroffen?

Prüfen Sie ein Lockfile kostenlos oder lassen Sie Ihre Repositories laufend überwachen.