CVE-2026-135227: Improper restriction of object attributes in Mongoid belongs_to assignment

Published Nov 25, 2026
·
Updated

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

1 affected component
rubygems/mongoid

Event History

Nov 25, 2026
CVE Published
via MITRE·05:43 PM
Data Sourced
via MITRE·05:43 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203