Skip to content
DayZeroHub
Medium Not yet writtenCVSS 5.3CVE-2026-135140

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

MongoDB Ruby Driver

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-135140: medium-severity vulnerability (CVSS 5.3) in MongoDB Ruby Driver.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 5.3.

Affected products and versions

MongoDB Ruby Driver >= 9.0.0, < 9.1.3

ProductVersionsFixed in
MongoDB Ruby Driver>= 9.0.0, < 9.1.3—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-312

Relevant change history

  1. Published

    Preliminary advisory published.