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
Published 2026-11-10 · Updated 2026-11-27 · Also known as BIT-mongoose-2026-125117, GHSA-8332-j7wj-wjw4
Summary
Mongoose fails to check whether properties are inherited or own when hydrating, setting, and merging data, allowing attackers to overwrite built-in functions and shared schema state. Engineering teams using Mongoose should upgrade their packages to the respective fixed versions.
Who is affected
Applications using Mongoose that process untrusted input via Model hydration, dotted path setting, or update merging are affected. Attackers can leverage this to trigger a persistent Denial of Service by overwriting critical built-in methods like `Object.prototype.toString.call`, or manipulate shared subdocument schema state such as validators across the entire application process.
Exploitability
The vulnerability carries a CVSS 3.1 base score of 8.2 (High) with a vector of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H, indicating it can be exploited remotely over the network with low complexity and no privileges or user interaction required. The EPSS score is 0.008 (522nd percentile) and CISA KEV lists active exploitation as no.
Remediation
- Upgrade npm package mongoose to version 6.13.12, 7.8.13, 8.24.7, 9.11.4, or later depending on the major version branch in use.
How to check your project
- Check package.json or lockfiles to determine if an affected version of mongoose is present (introduced 0 and fixed in 6.13.12, 7.0.0 fixed in 7.8.13, 8.0.0 fixed in 8.24.7, 9.0.0 fixed in 9.11.4).
Automated analysis of the published advisory data, generated 2026-11-27. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | mongoose |
>= 0, < 6.13.12 | 6.13.12 | npm install [email protected] |
| npm | mongoose |
>= 7.0.0, < 7.8.13 | 7.8.13 | npm install [email protected] |
| npm | mongoose |
>= 8.0.0, < 8.24.7 | 8.24.7 | npm install [email protected] |
| npm | mongoose |
>= 9.0.0, < 9.11.4 | 9.11.4 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality | None |
| Integrity | Low |
| Availability | High |
FAQ
Does this vulnerability allow remote code execution?
No, the described impact is denial of service and modification of shared schema state or built-in function properties, but not arbitrary code execution.
Is CISA KEV tracking active exploits for this vulnerability?
No, CISA Known Exploited Vulnerabilities status is listed as no.
Are lean queries affected by this issue?
No, the description explicitly notes that lean queries are not affected.
Original advisory description
References
- WEB https://github.com/Automattic/mongoose/security/advisories/GHSA-8332-j7wj-wjw4
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-125117
- WEB https://github.com/Automattic/mongoose/commit/18b5513dd463731a2caf0d3395ef1d9eb0735f50
- WEB https://github.com/Automattic/mongoose/commit/2a195d19a4dd240f039a0a226614d5804e8187ee
- WEB https://github.com/Automattic/mongoose/commit/3cb702b8d079c3e267f0b10f41673a1590f703c8
- WEB https://github.com/Automattic/mongoose/commit/85cf897105edfeb5f56be42a18a68704434cac82
- WEB https://github.com/Automattic/mongoose/commit/8cee51beead554df1f3d05645edb439c69eb2a9b
- WEB https://github.com/Automattic/mongoose/commit/8eb74cb4a550cbe0225963b07aebacbd999d4b74
- PACKAGE https://github.com/Automattic/mongoose
- WEB https://github.com/Automattic/mongoose/releases/tag/6.13.12
- WEB https://github.com/Automattic/mongoose/releases/tag/7.8.13
- WEB https://github.com/Automattic/mongoose/releases/tag/8.24.7
- WEB https://github.com/Automattic/mongoose/releases/tag/9.11.4
Source records: GHSA-8332-j7wj-wjw4 (OSV.dev) · EPSS by FIRST, 2026-11-27.