CVE-2026-135139
Incorrect authorization in has_many delete_all in Mongoid
Medium · 6.0Fix available
- CVSS
- 6
- EPSS
- 0.45% (p31)
- Published
- 2026-11-25
- Age
- 3d old
- Modified
- 2026-11-25
- Product
- MongoDB Ruby Driver
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
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.
Fixed in
9.1.3
Affected packages
| Ecosystem | Package | Range | Fixed |
|---|---|---|---|
| vendor | Ruby Driver | >=2.1.0, <9.1.3 | 9.1.3 |