CVE-2026-125120: Vulnerability in Automattic Mongoose

Critical. 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...

npm, CWE-943

Exploitation
None confirmed
Severity
9.8 of 10
Attack likelihood
0.9 % in 30 days
Fix
Fixed version known
Patch deadline
No deadline set

Details

Advisory ID
GHSA-pcrw-h46h-c93h
EU ID
EUVD-2026-120503
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-943
Published
9 Nov 2026
Last change
13 Nov 2026
Likelihood rank
Higher than 59 % of all rated vulnerabilities
Analysis status
Awaiting Analysis
Ecosystem
npm

Affected products

Affected versions and the first fixed release

  • Automattic Mongoose From 9.0.0, before 9.9.2; From 8.0.0, before 8.24.3; From 7.0.0, before 7.8.12; Before 6.13.11; Versions < 6.13.11, >= 7.0.0, < 7.8.12, >= 8.0.0, < 8.24.3, >= 9.0.0, < 9.9.2. Fixed in 7.8.12, 8.24.3, 9.9.2, 6.13.11

Affected packages

Vulnerable version ranges and fixed releases

  • mongoose npm, Affected before 6.13.11. Fixed in 6.13.11

Advisories

Vendor and security advisories

Patches and fixes

Updates, commits and release notes

Related