Mongoid has a vulnerability where its read-only attribute protection can be bypassed if attribute names are supplied dynamically by the caller. This allows users with basic privileges to modify fields that the application expects to be immutable, potentially altering trusted data such as access control flags.