CVE-2026-135135: Cleartext storage of encrypted embedded fields that use store_as in Mongoid
Mongoid builds an incomplete automatic encryption schema for certain embedded document associations. As a result, values that the application declared as encrypted may be written to the database in cleartext, with no error or warning returned to the application. A party holding only basic read privileges on the affected collection, and no access to the encryption keys, may then obtain those values in readable form.
Affected Software
Event History
Frequently Asked Questions
Who could read the affected values?
A party with only basic read privileges on the affected collection may obtain the values in readable form. Access to the encryption keys is not required.
What application pattern is affected?
The issue affects certain embedded document associations where the application declared fields as encrypted and uses store_as. Mongoid may build an incomplete automatic encryption schema for those associations.
How can I determine whether data has been exposed?
Review documents in affected collections for values from fields declared as encrypted. If those values are readable directly in the database without encryption keys, they were written in cleartext.