Medium · published September 18, 2026
Mongoid may omit encryption rules for fields declared on embedded models when generating the client-side field-level encryption schema. Applications that enable this feature can therefore store values intended to be encrypted in readable form, with no error or warning. A party with routine read access to the database, a backup, or the underlying data files may then see data that was meant to remain unreadable outside the application.
| Product | Versions | Fixed in |
|---|---|---|
| mongodb/mongoid | ≥ 9.0.0, < 9.0.12 | 9.0.12 |
| mongodb/mongoid | all versions | — |