# CVE-2026-135140: Cleartext storage of encrypted foreign key fields in Mongoid

- Severity: Medium 5.3 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/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.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-11-25T17:44:53.133Z
- Modified: 2026-11-25T20:18:37.023Z
- Weaknesses: CWE-312
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

## Description

Mongoid may omit a field from the client-side encryption settings it generates for a collection when that same field is also used as a reference to another record. The value is then stored in readable form instead of encrypted, and the application receives no indication that this has happened. A party with ordinary authenticated read access to the affected collection may be able to view data that was intended to be protected.

(As written by CVE List.)

## Affected

- MongoDB Ruby Driver: from 9.0.0 before 9.1.3

## Every score

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

## References

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

## Sources

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

---

Page: https://cve.day/CVE-2026-135140 · Whole record: https://cve.day/CVE-2026-135140.json · Rebuilt by cve.day 2026-11-25T23:18:16.946Z
