CVE-2026-125116
CVE-2026-125116 — Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections
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 uses attacker-controlled discriminator key values, including the default __t field, to index plain-object registries such as Model.discriminators and schema.discriminators without requiring an own property. Values such as constructor, toString, or hasOwnProperty can therefore resolve to inherited built-in functions instead of a registered discriminator, causing type confusion in model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. In the bulkWrite() insertOne path with skipValidation enabled, a constructor value can cause a raw input object to be stored without schema casting or strict filtering, and a stored poisoned document can make every query that hydrates it fail…
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
4.8
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
No
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 |
|---|---|---|---|---|---|
| 4.8 | CVSS 3.1 | MEDIUM | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-843
References
11 on the record
- github.com/Automattic/mongoose/security/advisories/GHSA-wr5m-5jph-8m96
x_refsource_CONFIRM
- github.com/Automattic/mongoose/commit/0ecd8040d9b446f36535d79938c130c800f91766
x_refsource_MISC
- github.com/Automattic/mongoose/commit/18afab75bea861f625b7c5b54635c84567ec566c
x_refsource_MISC
- github.com/Automattic/mongoose/commit/390453c8ce1b36b6cfd1e63432a910da1f3d81d5
x_refsource_MISC
- github.com/Automattic/mongoose/commit/8cee51beead554df1f3d05645edb439c69eb2a9b
x_refsource_MISC
- github.com/Automattic/mongoose/commit/b26c43554233134ea978c5852babe13be858b2cf
x_refsource_MISC
- github.com/Automattic/mongoose/commit/b68f90734b50cd22c89a669c8ca1469d7234b296
x_refsource_MISC
- github.com/Automattic/mongoose/releases/tag/6.13.12
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2012-0507 Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution VulnerabilityCVSS 10.0 · CISA KEV
- CVE-2025-10585 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.8 · CISA KEV
- CVE-2024-7971 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2024-5274 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2024-4947 Google Chromium V8 Type Confusion VulnerabilityCVSS 9.6 · CISA KEV
- CVE-2026-85046 Google Chromium V8 Type Confusion VulnerabilityCVSS 8.8 · CISA KEV
Elsewhere on this site
- Automatticevery CVE for this vendor
- CWE-843other 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.