CVE-2026-135141: Incorrect authorization from a discarded default scope in Mongoid
A logic flaw in the query-building layer of the Mongoid object-document mapper causes a model-level default restriction that is meant to return no records to be silently discarded when it is combined into a query. A user with basic application privileges who sends an ordinary request may read, change, or remove records that the restriction was intended to withhold.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using the Mongoid Ruby gem are exposed where a model-level default restriction is intended to return no records. The vulnerable behavior can allow users with basic application privileges to access records that the application expected that restriction to withhold.
What does an attacker need to exploit it?
An attacker needs basic application privileges and the ability to send an ordinary application request that reaches a query affected by the model-level default restriction. No user interaction is required.
What actions could an attacker perform?
The flaw may allow reading, modifying, or deleting records that should have been excluded by the default restriction. Availability impact is not indicated by the supplied severity vector.