Reported by 3 outlets
Mongoose NoSQL injection flaws CVE-2026-125120 and CVE-2026-125117 (CVSS 9.8)
Why this score
- Breadth
- 1.50 / 2.0 · 3 sources
- Authority
- 1.00 / 2.0 · best outlet weight
- Severity
- 4.50 / 5.0 · CVSS + content signals
- Velocity
- 0.00 / 2.0 · updates in 48h
- Pickup speed
- 0.60 / 0.6 · time to second source
- Recency
- × 0.00 temporal multiplier
- Community
- + 0.00 / 1.5 · reddit signal
- Score
- 0.0 / 10 = base × recency + community
Desk analysis
Mongoose, the MongoDB object modeling library for Node.js with roughly 4.8 million weekly npm downloads, shipped fixes for two security flaws tracked as CVE-2026-125120 and CVE-2026-125117. The first, disclosed as GHSA-pcrw-h46h-c93h, is a NoSQL injection in countDocuments(): versions before 6.13.11, 7.8.12, 8.24.3, and 9.9.2 do not apply sanitizeFilter to countDocuments() queries, so attacker-controlled filter values can be interpreted as query operators instead of literals, letting documents that should not match be included and undermining authorization or application logic that relies on counts. It is rated CVSS 9.8 and credits finder koyokr, with a middleware workaround that calls mongoose.sanitizeFilter on the countDocuments filter.
The second flaw, GHSA-8332-j7wj-wjw4, is a prototype-pollution class issue in versions before 6.13.12, 7.8.13, 8.24.7, and 9.11.4 where three code paths copy data by property name without own-property checks during document loading, dotted-path sets, and mergeClone. Attacker keys such as toString or $__schema can overwrite shared built-in functions or schema validators, causing denial of service or altered validation across unrelated queries until restart. It is rated CVSS 8.2 high with no additional mitigation indicated.
Operators should upgrade to at least 6.13.11/7.8.12/8.24.3/9.9.2 for the countDocuments issue and 6.13.12/7.8.13/8.24.7/9.11.4 for the prototype-pollution issue, or apply the sanitizeFilter middleware workaround where an immediate upgrade is not possible. Because Mongoose sits in the data layer of many Node.js applications, a filter-injection that bypasses counts can quietly widen query results and defeat authorization checks that depend on document counts.
Timeline
-
original reporting
Patch critical Mongoose security flaws CVE-2026-125120 (CVSS 9.8) and CVE-2026-125117 affecting 4.8 million weekly npm users against NoSQL i
securityonline.info · 20d ago · November 10th, 2026
Patch critical Mongoose security flaws CVE-2026-125120 (CVSS 9.8) and CVE-2026-125117 affecting 4.8 million weekly npm users against NoSQL i
-
update from github.com
sanitizeFilter not applied on countDocuments
github.com · 27d ago · November 2nd, 2026
Mongoose's vendor advisory GHSA-pcrw-h46h-c93h discloses that versions before 6.13.11, 7.8.12, 8.24.3 and 9.9.2 do not apply sanitizeFilter to countDocuments() queries, so attacker-controlled filter values can be interpreted as query operators instead of literals. This can include documents that should not match and undermine authorization or application logic relying on counts. The advisory credits finder koyokr, rates the issue CVSS 9.8, and lists patched versions plus a middleware workaround that calls mongoose.sanitizeFilter on the countDocuments filter.
-
update from github.com
Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state
github.com · 27d ago · November 2nd, 2026
GHSA-8332-j7wj-wjw4 discloses a prototype-pollution class issue in Mongoose before 6.13.12, 7.8.13, 8.24.7 and 9.11.4, where three code paths copy data by property name without own-property checks during document loading, dotted-path sets and mergeClone. Attacker keys such as toString or $__schema can overwrite shared built-in functions or schema validators, causing denial of service or altered validation across unrelated queries until restart. The advisory rates it CVSS 8.2 high and states it is fixed in the listed versions, with no additional mitigation indicated.
-
update from secquill.com
Mongoose patches flaw that let document counts bypass its injection defense Mongoose has released fixes in four release lines after its quer
secquill.com · 15d ago · November 14th, 2026
Mongoose patches flaw that let document counts bypass its injection defense Mongoose has released fixes in four release lines after its quer