AI and data stack advisories

1 critical this month · 294 projects

MongoDBCVE-2026-135226

MongoDB Ruby Driver: type confusion

MongoDB

CVE-2026-135226 · Published Nov 25, 2026

High8.7
Fix: upgrade to 5.2.1 or later
MongoDB advisory

A type-confusion weakness in the Extended JSON parsing component of BSON for Ruby allows a party who can supply parser input to influence how a serialized document is framed. Content placed in one value may be read back as additional or replacement document fields. An unauthenticated party supplying input to an application that parses untrusted Extended JSON and stores the result may cause unintended modification of stored data.

Affected versions

PackageAffectedFixed in
Ruby Driver
Product
>= 4.8.0, < 5.2.15.2.1
Details and references
CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/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-843

More MongoDB advisories

All MongoDB
CVE-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-135139Nov 25MongoDB Ruby Driver: improper authorizationMongoid contains an incorrect authorization weakness in the handling of caller-supplied filters for bulk removal through a referenced association.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.3