# CVE-2026-126817: Mongoid stores encrypted fields in plaintext when two models share a collection

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-13 · Modified: 2026-11-16
- Record: https://cvemate.com/vulnerability/CVE-2026-126817 · JSON: https://cvemate.com/vulnerability/CVE-2026-126817/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.122%, percentile 2.171%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb ruby driver: 9.0.0 \| 9.0.1 \| 9.0.2 \| 9.0.3 \| 9.0.4 \| 9.0.5 \| 9.0.6 \| 9.0.7 \| 9.0.8 \| 9.0.9 \| 9.0.10 \| 9.0.11 \| 9.0.12 \| 9.1.0 \| 9.1.1

## References

- <https://jira.mongodb.org/browse/MONGOID-6037>

---

Data as of 2026-12-05T04:27:18.501Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
