CVE-2026-135140: Cleartext storage of encrypted foreign key fields in Mongoid

Published Nov 25, 2026
·
Updated

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

1 affected component
rubygems/mongoid

Event History

Nov 25, 2026
CVE Published
via MITRE·05:44 PM
Data Sourced
via MITRE·05:44 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203