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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-125119— Mongoose: Connection-level sanitizeFilter not applied

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.0.0 至 6.13.12、7.8.13、8.24.7 和 9.11.4 版本中,Mongoose 将连接级别的 选项存储在 中,但 及查询类型转换逻辑却检查了其他选项位置,并未读取该配置。因此,若应用程序通过 或 启用 ,并将攻击者可控的对象传入查询过滤器,则连接会报告防护已启用,而实际查询选择器对象却未经过净化。攻击者可构造包含查询操作符的密码值,从而在不匹配预期字面密码的情况下成功匹配账户记录。值得注意的是,通过 进行的全局配置

CVSS 7.5 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125119

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: Connection-level sanitizeFilter not applied
Source: CVE Program / CVE List V5
Vulnerability Description
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. From 6.0.0 until 6.13.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose stores the connection-level sanitizeFilter option in Connection.config, but Query.prototype._castConditions() and query casting check other option locations and do not read that configuration. An application that enables sanitizeFilter through mongoose.connect() or createConnection() and passes an attacker-controlled object into a query filter therefore receives a connection that reports the defense as enabled while query selector objects remain unsanitized. A crafted password value using a query operator can match an account record without the expected literal password, while global configuration through mongoose.set('sanitizeFilter') and per-query Model.find().sanitizeFilter() remain unaffected. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
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.0.0, < 6.13.12 -

II. Public POCs for CVE-2026-125119

# 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-125119

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

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

Vendor Advisories for CVE-2026-125119 (1)

Vendor Pages for CVE-2026-125119 (4)

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

CVE-2026-125120 9.8 CRITICAL Mongoose: sanitizeFilter not applied on countDocuments
CVE-2026-125117 8.2 HIGH Mongoose walks into inherited properties when hydrating, setting, and merging, allowing ov
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