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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-125117— Mongoose walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state

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.12、7.8.13、8.24.7 和 9.11.4 版本之前,Mongoose 在通过 init() 加载数据库文档、在 $__set 中设置点分隔路径(dotted paths),以及在 utils.mergeClone 中合并更新文档时,可能会递归遍历继承属性。因此,由攻击者控制的关键字(如 toString 或 valueOf)可能导致 Mongoose 将数据写入共享的内置函数,而非对象自身的属性。 攻击者可构造包含特定

CVSS 8.2 · High

Possible ATT&CK Techniques 2 AI

T1055 · Process Injection T1069.006
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125117

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 walks into inherited properties when hydrating, setting, and merging, allowing overwrites of built-in functions (denial of service) and shared schema state
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.12, 7.8.13, 8.24.7, and 9.11.4, Mongoose can descend into inherited properties while loading database documents in init(), setting dotted paths in $__set, and merging update documents in utils.mergeClone. Attacker-controlled keys such as toString or valueOf can therefore cause Mongoose to write into shared built-in functions instead of an own property. A crafted document, Mixed path, non-strict document or subdocument, findOneAndReplace() replacement, chained update, or Query.prototype.merge() source can overwrite Object.prototype.toString.call, causing later queries on unrelated models to fail until the process restarts. Separately, when an attacker controls the dotted path passed to doc.set(path, value) for a subdocument configured with strict: false, descent through $__set can reach $__schema and alter shared validators or schema options for later documents. Mongoose already blocks __proto__, constructor, and prototype, so this issue overwrites properties on reachable shared objects rather than adding new properties directly to Object.prototype. 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:N/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-1321
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Automattic mongoose < 6.13.12 -

II. Public POCs for CVE-2026-125117

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

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

Patches & Fixes for CVE-2026-125117 (4)

Vendor Advisories for CVE-2026-125117 (1)

Vendor Pages for CVE-2026-125117 (4)

Other References for CVE-2026-125117 (1)

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

CVE-2026-125120 9.8 CRITICAL Mongoose: sanitizeFilter not applied on countDocuments
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