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

- Severity: Medium 6.0 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-11-13T15:40:10.838Z
- Modified: 2026-11-17T00:17:26.070Z
- Weaknesses: CWE-312
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## Description

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.

(As written by CVE List.)

## 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; and 3 more

## Every score

- mongodb: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-126817](https://www.cve.org/CVERecord?id=CVE-2026-126817), CVE Terms of Use, modified 2026-11-16
- NVD: [CVE-2026-126817](https://nvd.nist.gov/vuln/detail/CVE-2026-126817), Public domain, modified 2026-11-17

---

Page: https://cve.day/CVE-2026-126817 · Whole record: https://cve.day/CVE-2026-126817.json · Rebuilt by cve.day 2026-11-25T22:59:50.735Z
