Mongoose versions prior to 6.13.12, 7.8.13, 8.24.7, and 9.11.4 contain a prototype pollution vulnerability via Schema.prototype.virtual(). This occurs because nested virtual paths are built without proper special-property validation, allowing attackers to inject properties like __proto__, constructor, or prototype. Such pollution can spoof inherited property checks and affect server-side JavaScript code behavior. The issue is fixed in the specified versions.