Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-125120— Mongoose: sanitizeFilter not applied on countDocuments

Quick assessment

Affected
Automattic mongoose
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Mongoose 是一个专为异步环境设计的 MongoDB 对象建模工具。在 6.13.11、7.8.12、8.24.3 和 9.9.2 版本之前,Mongoose 的 方法未应用已配置的 查询选择器注入防御机制。因此,若应用程序启用了 并将攻击者可控的过滤条件值传递给 ,该方法会将查询操作符对象误解析为操作符而非字面值,导致计数结果包含本不应匹配的文档,进而可能破坏基于该计数值的授权机制或应用程序逻辑。该问题已在 6.13.11、7.8.12、8.24.3 和 9.9.2 版本中修复。

CVSS 9.8 · Critical

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125120

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Mongoose: sanitizeFilter not applied on countDocuments
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
数据查询逻辑中特殊元素的不当中和
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Automattic mongoose < 6.13.11 -

II. Public POCs for CVE-2026-125120

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-125120

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-125120 (3)

Vendor Advisories for CVE-2026-125120 (1)

Vendor Pages for CVE-2026-125120 (3)

Same Patch Batch · Automattic · 2026-11-09 · 5 CVEs total

CVE-2026-125117 8.2 HIGH Mongoose walks into inherited properties when hydrating, setting, and merging, allowing ov
CVE-2026-125119 7.5 HIGH Mongoose: Connection-level sanitizeFilter not applied
CVE-2026-125118 6.5 MEDIUM Mongoose: Prototype pollution via Schema.prototype.virtual()
CVE-2026-125116 4.8 MEDIUM Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor')

IV. Related Vulnerabilities