CVE-2026-135140: Cleartext storage of encrypted foreign key fields in Mongoid
Mongoid may omit a field from the client-side encryption settings it generates for a collection when that same field is also used as a reference to another record. The value is then stored in readable form instead of encrypted, and the application receives no indication that this has happened. A party with ordinary authenticated read access to the affected collection may be able to view data that was intended to be protected.
Affected Software
Event History
Frequently Asked Questions
Who can view the exposed values?
A party with ordinary authenticated read access to an affected collection may be able to read values that were intended to be protected. The issue concerns fields that are both configured for client-side encryption and used as references to another record.
How can I determine whether my data may be affected?
Review collections using Mongoid client-side encryption and identify fields that also serve as references to other records. For those fields, verify the stored database values rather than relying on the application to report an encryption failure, because the application receives no indication when the field is stored in readable form.