CVE-2026-135140

published 25 Nov 2026 · updated 25 Nov 2026

Cleartext storage of encrypted foreign key fields in Mongoid

4.3MediumCVSS 4.3

No exploitation in the wild has been reported. Fixed in Ruby Driver 9.1.3.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
MongoDBRuby Driver>=9.0.0 <9.1.39.1.3

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in MongoDB, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-135140 severity on Zeptric[![CVE-2026-135140](https://zeptric.io/badge/cve/CVE-2026-135140.svg)](https://zeptric.io/cve/CVE-2026-135140)