Mongoose versions prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4 have a vulnerability where discriminator key values matching inherited properties can cause type confusion. This affects model construction, document creation, hydration, query and update casting, embedded discriminators, and populate operations. Specifically, in bulkWrite() insertOne with skipValidation enabled, an attacker can store raw input objects without schema casting or filtering, potentially causing queries that hydrate such documents to fail until removal. The issue does not involve prototype pollution but arises from reading inherited properties incorrectly. Fixed versions are available.