CVE-2026-125116Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections
- 4.8MediumCVSS base score
- 0.34%Exploitation in 30 daysEPSS · top 72% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- YesPublic exploitsa reference or SSVC says so
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 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 until the document is removed. The weakness reads inherited properties but does not modify Object.prototype and is not prototype pollution. This issue is fixed in versions 6.13.12, 7.8.13, 8.24.7, and 9.11.4.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. A reference of the record is tagged as an exploit. CISA's SSVC rates its exploitation: a proof of concept is public.
Show the exploits1
References tagged exploit1 reference
- https://github.com/Automattic/mongoose/security/advisories/GHSA-wr5m-5jph-8m96 (opens in a new tab)x_refsource_CONFIRMexploit
Timeline
ID reserved
By GitHub_M
Published
- 4 days later
· 4 days later
Public exploit appeared
A proof of concept or exploit was published
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | Medium4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
| NVDNVD · Awaiting Analysis | 3.1 | Medium4.8 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L |
- EPSS (exploitation in 30 days)
- 0.34% · top 72% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: poc · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.8.
Affected products
- affected < 6.13.12
- affected >= 7.0.0, < 7.8.13
- affected >= 8.0.0, < 8.24.7
- affected >= 9.0.0, < 9.11.4
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- npmmongooseGHSA-wr5m-5jph-8m96 (opens in a new tab)
References
References11
- https://github.com/Automattic/mongoose/security/advisories/GHSA-wr5m-5jph-8m96 (opens in a new tab)x_refsource_CONFIRMexploit
- https://github.com/Automattic/mongoose/commit/0ecd8040d9b446f36535d79938c130c800f91766 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/18afab75bea861f625b7c5b54635c84567ec566c (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/390453c8ce1b36b6cfd1e63432a910da1f3d81d5 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/8cee51beead554df1f3d05645edb439c69eb2a9b (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b26c43554233134ea978c5852babe13be858b2cf (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/commit/b68f90734b50cd22c89a669c8ca1469d7234b296 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/6.13.12 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/7.8.13 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/8.24.7 (opens in a new tab)x_refsource_MISC
- https://github.com/Automattic/mongoose/releases/tag/9.11.4 (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2026-120497 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-wr5m-5jph-8m96 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2026-125116)Record last updated .