CVE-2026-135138: Improper restriction of read-only attributes with dotted keys in Mongoid

Published Nov 25, 2026
·
Updated

Mongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller. In an application that forwards caller-supplied attribute names into a document update, a user with basic application privileges may change values held inside a field the model declared immutable. This may result in unintended modification of data the application treats as trusted, such as flags used for its own access decisions.

Affected Software

1 affected component
rubygems/mongoid

Event History

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

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Applications using Mongoid are exposed when they pass caller-supplied attribute names into document updates and rely on Mongoid read-only attributes to prevent changes. A user with basic application privileges may then be able to alter values within fields the application considers immutable.

2

What does an attacker need to exploit it?

The attacker needs basic application privileges and a path that forwards caller-controlled attribute names into a Mongoid document update. No user interaction is required.

3

What is the potential impact?

An attacker may modify data inside a field declared immutable by the model. This can affect application-trusted values, including flags used for access-control decisions.

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