Elevated
Mongoid drops model default restriction, exposing others' records
CVE-2026-135141 and 5 more
Database tools in Ruby apps can let users steal others' records.
- CVE
- CVE-2026-135141 and 5 more
- Score
- CVSS 8.6 · CVE-2026-135141
- First seen
8.6
Products
Disclosed together MongoDB Ruby Driver
Mitigation
Update to MongoDB Ruby Driver 9.1.3 or later. This fixed version covers all six CVEs.
Summary
A query-building flaw in Mongoid drops a model's default restriction, so a user with basic privileges can read, change, or remove records that should be withheld. The same release also fixes flaws in association handling, encrypted fields, and read-only attribute protection.
Affected when
- CVE-2026-135141 a model uses a default scope
- CVE-2026-135227 unfiltered request data passed into belongs_to association handling
- CVE-2026-135135 encrypted fields in embedded documents using store_as
- CVE-2026-135139 has_many association uses delete_all
- CVE-2026-135138 caller-supplied attribute names forwarded into document updates
- CVE-2026-135140 an encrypted field also used as a reference to another record
6 other Incidents of this product in the last 30 days
Incidents by product: MongoDB Ruby Driver
Other recent Incidents of MongoDB Ruby Driver
6 CVEs (every link below opens in a new tab)
Read the write-up · jira.mongodb.org (opens in a new tab)
Each of the 6 CVEs (every link below opens in a new tab)
- CVE-2026-135141Lets attackers read, change, or remove records that the default restriction should hide. CVSS 8.6 CVE-2026-135141 write-up
- CVE-2026-135227Unfiltered input in association handling can change, remove, or block reads of individual records. CVSS 8.3 CVE-2026-135227 write-up
- CVE-2026-135135Encrypted values are stored in plain text, so anyone with read access can view them. CVSS 7.1 CVE-2026-135135 write-up
Show 3 more
- CVE-2026-135139Bulk removal through an association can delete records of the same parent the caller did not select. CVSS 6.5 CVE-2026-135139 write-up
- CVE-2026-135138Values inside a field meant to be read-only can be changed, including trusted access flags. CVSS 6.5 CVE-2026-135138 write-up
- CVE-2026-135140A reference field left out of encryption is stored in plain text and readable by authenticated users. CVSS 5.3 CVE-2026-135140 write-up