CVE-2026-125118
CVE-2026-125118 — Mongoose: Prototype pollution via Schema.prototype.virtual()
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.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
6.5
MEDIUM
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
PoC
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Partial
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 6.5 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-1321
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.010Hijack Execution Flow: ServicesFile Permissions Weakness
References
9 on the record
- github.com/Automattic/mongoose/security/advisories/GHSA-6972-9mcm-vhwj
x_refsource_CONFIRM
- github.com/Automattic/mongoose/commit/318f7e09dd363a1dfddb8180878488dccd2796d1
x_refsource_MISC
- github.com/Automattic/mongoose/commit/74df7769b5a8d89c4413b764029911ee915ea467
x_refsource_MISC
- github.com/Automattic/mongoose/commit/7a2a6567abbb72c0430c8cc5b7942141844fecff
x_refsource_MISC
- github.com/Automattic/mongoose/commit/fb467e6d33174293dc0360649f20ce68d99117a9
x_refsource_MISC
- github.com/Automattic/mongoose/releases/tag/6.13.12
x_refsource_MISC
- github.com/Automattic/mongoose/releases/tag/7.8.13
x_refsource_MISC
- github.com/Automattic/mongoose/releases/tag/8.24.7
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2026-34621 Acrobat Reader | Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') (CWE-1321)CVSS 8.6 · CISA KEV
- CVE-2019-0230 Apache Struts 2.0.0 to 2.5.20 forced double OGNL evaluation, when evaluated on raw user input in tag attributes, may lead to remote code…CVSS 9.8
- CVE-2026-137089 merge-deep-composed through 0.1.4 Prototype Pollution via _mergeDeepOne()CVSS 7.3
- CVE-2026-137088 @oleksii-pavlov/deep-merge before 1.2.4 Prototype Pollution via deepMergeTwoAssignable()CVSS 7.3
- CVE-2026-137087 @irrelon/path 6.2.2 before 7.0.3 Prototype Pollution via merge() and mergeImmutable()CVSS 7.3
- CVE-2026-78654 cleverbrush framework/deep deepExtend.ts deepExtend prototype pollutionCVSS 7.3
Elsewhere on this site
- Automatticevery CVE for this vendor
- CWE-1321other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.