CVE-2026-135227: Improper restriction of object attributes in Mongoid belongs_to assignment
An improper restriction of dynamically determined object attributes in the object-document mapping library's association handling allows structured input supplied in place of a simple identifier value to be turned into an object that is treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into the affected association handling, an unauthenticated party may cause unintended modification or removal of stored records, and may render an individual record unreadable through that association.
Affected Software
Event History
Frequently Asked Questions
Which applications are exposed?
Applications using the affected association handling are exposed when they pass unfiltered request data into it. The described attack does not require authentication.
What must an attacker provide to exploit the issue?
The attacker must supply structured input where the application expects a simple identifier for an association. That input can be interpreted as an already-stored record of an attacker-chosen model class.
What outcomes can exploitation cause?
An attacker may trigger unintended modification or removal of stored records. They may also make an individual record unreadable through the affected association.