Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-135139 EUVD-2026-135620GHSA-9p32-jgc3-hmrv

Incorrect authorization in has_many delete_all in Mongoid

Published Nov 25, 2026 · Updated Nov 25, 2026 · Assigned by mongodb

Description

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 products

VendorProductAffectedFixed
MongoDB Ruby Driver 2.1.0 – < 9.1.3 9.1.3

Advisories 1

References