CVE-2026-135139: Incorrect authorization in has_many delete_all in Mongoid

Published Nov 25, 2026
·
Updated

Mongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association. Conditions already attached to the association can take precedence over the filter the caller supplied, so records the caller did not select may be removed. A user with basic privileges in an application built on the library may cause unintended removal of records belonging to the same parent record.

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
Data Sourced
via NVD·06:18 PM
DescriptionSeverityWeakness
Event
via NVD·06:18 PM

Frequently Asked Questions

1

Which applications are exposed to unintended record deletion?

Applications built on Mongoid are exposed when they perform bulk removal through a referenced association using caller-supplied filters. The issue applies where conditions already attached to that association can override or take precedence over the caller's intended selection.

2

What level of access would an attacker need?

An attacker needs basic privileges in the application. No user interaction is required according to the supplied severity vector.

3

How far can unintended deletions extend?

The described impact is removal of records that the caller did not select but that belong to the same parent record. The provided data does not indicate deletion across different parent records.

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