THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-wr5m-5jph-8m96 (medium) — Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections

[GHSA] GHSA-wr5m-5jph-8m96 (medium) — Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections

medgithub_advisoriesPublished 2026-11-10

GHSA-wr5m-5jph-8m96 Severity: medium CVE: CVE-2026-125116

Mongoose: Discriminator key values matching inherited properties (e.g. __t: 'constructor') bypass schema casting and can poison collections

### Summary

Mongoose chooses which discriminator model or schema to use by looking up the discriminator key value (`__t` by default) in a plain object of registered discriminators, for example `Model

Indicators of compromise

Original source: https://github.com/advisories/GHSA-wr5m-5jph-8m96