CVE-2026-126817
Mongoid stores encrypted fields in plaintext when two models share a collection
- Severity
- medium CVSS 6.0 (v4.0)
- Affects
- Ruby Driver · MongoDB
- Weakness
- CWE-312: Cleartext Storage of Sensitive Information
- Published
- 13 November 2026 by mongodb
A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form.
Our coverage
We have not written about this one. Know why it matters? Send a tip.