Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applicationsLearn about Access of Resource Using Incompatible Type ('Type Confusion') vulnerabilities in an interactive lesson.
Start learningUpgrade mongoose to version 6.13.12, 7.8.13, 8.24.7, 9.11.4 or higher.
mongoose is a Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment.
Affected versions of this package are vulnerable to Access of Resource Using Incompatible Type ('Type Confusion') via the discriminator key lookup in getDiscriminatorByKey and related code paths, when a user-controlled discriminator key value (e.g. __t: 'constructor') is used to index a plain-object discriminator registry (Model.discriminators[doc.__t]) without an own-property check. Because the registry is a plain object, inherited Object.prototype properties such as constructor, toString, and hasOwnProperty resolve to built-in functions instead of discriminator models. This causes a TypeError or returns a raw object where a Mongoose document is expected, crashing the affected request. Through bulkWrite() insertOne with skipValidation: true, the raw user object is stored without schema casting or strict filtering, and every subsequent query returning that document throws until it is manually removed from the database.
Note: The persistent denial of service and schema bypass require the application to call bulkWrite() with skipValidation: true on untrusted input.