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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-125118— Mongoose: Prototype pollution via Schema.prototype.virtual()

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 之前, 在构建嵌套虚拟路径时,未应用 和 中已使用的特殊属性验证机制。若攻击者能够影响动态模式、内容管理系统表单构建器或“模式即代码”系统中的虚拟字段名称,则可提供诸如 、 或 等路径片段,导致虚拟路径归约器(reducer)向 或 写入可枚举属性。由此引发的原型污染可伪造继承属性检查(例如授权标志),并为其他服务器端 JavaScript 代码提供函数原型小部件(gadg

CVSS 6.5 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-125118

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: Prototype pollution via Schema.prototype.virtual()
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, Schema.prototype.virtual() builds nested virtual paths without applying the special-property validation already used by Schema.path() and Schema.add(). An attacker who can influence virtual field names in dynamic schemas, content-management form builders, or schema-as-code systems can supply path segments such as __proto__, constructor, or prototype, causing the virtual-path reducer to write enumerable properties to Object.prototype or Function.prototype. The resulting prototype pollution can spoof inherited property checks such as authorization flags and can provide function-prototype gadget state to other server-side JavaScript code. 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:L
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-125118

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

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

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

Vendor Advisories for CVE-2026-125118 (1)

Vendor Pages for CVE-2026-125118 (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-125119 7.5 HIGH Mongoose: Connection-level sanitizeFilter not applied
CVE-2026-125116 4.8 MEDIUM Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor')

IV. Related Vulnerabilities