CVE-2026-135135: Cleartext storage of encrypted embedded fields that use store_as in Mongoid

Published Nov 25, 2026
·
Updated

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

1 affected component
rubygems/mongoid

Event History

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

Frequently Asked Questions

1

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.

2

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.

3

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.

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