Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
Mongoose is a MongoDB object modeling tool designed to work in an asynchronous environment. Mongoose versions prior to 6.4.6 are vulnerable to Prototype Pollution. The "Schema.path()" and "Schema.add()" function is vulnerable to prototype pollution when setting the schema object. This vulnerability allows modification of the Object prototype and could be manipulated into a Denial of Service (DoS) attack.
CWE-1321 - Prototype Pollution