MongoDBCVE-2026-135139
MongoDB Ruby Driver: improper authorization
Fix: upgrade to 9.1.3 or later
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 versions
| Package | Affected | Fixed in |
|---|---|---|
| Ruby Driver Product | >= 2.1.0, < 9.1.3 | 9.1.3 |
Details and references
- CVSS 4.0
- 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- Severity from
- the vendor (its own CVE record or advisory)
- Weakness
- CWE-863
More MongoDB advisories
All MongoDBCVE-2026-135227Nov 25MongoDB Ruby Driver: mass assignmentAn 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...High8.3Fixed in 9.1.3CVE-2026-135898Nov 25MongoDB Python Driver: out-of-bounds readAn out-of-bounds read in the native C BSON decoding extension of the MongoDB Python Driver may allow an unauthenticated party who can supply crafted BSON data to the decoder to cause the application...High8.8Fixed in 4.20.2CVE-2026-135138Nov 25MongoDB Ruby Driver: mass assignmentMongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller.Medium6.0Fixed in 9.1.3CVE-2026-135140Nov 25MongoDB Ruby Driver: cleartext storageMongoid may omit a field from the client-side encryption settings it generates for a collection when that same field is also used as a reference to another record.Medium5.3Fixed in 9.1.3CVE-2026-135141Nov 25MongoDB Ruby Driver: improper authorizationA logic flaw in the query-building layer of the Mongoid object-document mapper causes a model-level default restriction that is meant to return no records to be silently discarded when it is combined...High8.6Fixed in 9.1.3CVE-2026-135146Nov 25An improper certificate revocation check in the MongoDB Python Driver's optional TLS revocation-checking support allows an unauthenticated party that operates the network endpoint a client connects...Critical9.1Fixed in 4.20.2