{"affected":[{"defaultStatus":"unaffected","product":"Ruby Driver","source":"CNA: mongodb","vendor":"MongoDB","versions":[{"lessThan":"9.1.3","status":"affected","version":"9.0.0","versionType":"semver"}]}],"cveId":"CVE-2026-135140","cwes":["CWE-312"],"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.","epss":null,"exploits":[],"kev":null,"metrics":[{"score":5.3,"severity":"medium","source":"CNA: mongodb","vector":"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","version":"4.0"},{"score":4.3,"severity":"medium","source":"CNA: mongodb","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","version":"3.1"}],"modifiedAt":1795628693133,"publishedAt":1795628693133,"references":[{"source":"CNA: mongodb","tags":[],"url":"https://jira.mongodb.org/browse/MONGOID-6026"}],"remediation":[],"revision":"22065f6d2eeef2b0cb2f05be85c13f16c43b838de40f91c38753dd07b8c9a25e","sources":[{"modifiedAt":1795628693133,"name":"CNA: mongodb","retrievedAt":1795630150561,"url":"https://www.cve.org/CVERecord?id=CVE-2026-135140"}],"ssvc":null,"status":"published","title":"Cleartext storage of encrypted foreign key fields in Mongoid","updatedAt":1795630150561}