Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.0
CVE-2026-126817: MongoDB Ruby driver can save encrypted data as cleartext
CVE-2026-126817 · published 5 days ago
Summary
When two different data models share the same database collection, the driver may write data that was meant to be encrypted in readable form. This can happen without any warning, allowing anyone with a read‑only database account to see the sensitive information. Update the driver to the latest version or avoid sharing collections between models to prevent this exposure.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| mongodb | ruby driver | 9.0.0 |
Original advisory text
Mongoid stores encrypted fields in plaintext when two models share a collection
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.
References
Internet-facing
60 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker partial control
Type
CWE-312Cleartext Storage of Sensitive Information
Timeline
Published13 Nov 2026
Updated18 Nov 2026
First seen13 Nov 2026
Track software like this
Free during beta