Incident response on call, 24/7: +385 98 1900 984NewIR Retainer: a team on contract before an attack
HR · EN
Medium 6.5CVE-2026-135135

Cleartext storage of encrypted embedded fields that use store_as in Mongoid

Published 25/11/2026 · Updated 25/11/2026 · MongoDB Ruby Driver

Description

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 products and versions

MongoDB Ruby Driver9.0.0 – < 9.1.3Fixed in: 9.1.3

CVSS vector, explained

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Attack vector
Network (from the internet)
Attack complexity
Low
Privileges required
Regular user
User interaction
Not required
Scope
Vulnerable component only
Confidentiality
High impact
Integrity
None
Availability
None

Weakness type (CWE)

  • CWE-312 Cleartext Storage of Sensitive Information

References

Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.