Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-135227— Improper restriction of object attributes in Mongoid belongs_to assignment

Quick assessment

Affected
MongoDB Ruby Driver
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

An 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 value to be turned into an object that is treated as an already-s

CVSS 8.2 · High
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-135227

Vulnerability Information

Shenlong is analyzing...


Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Improper restriction of object attributes in Mongoid belongs_to assignment
Source: CVE Program / CVE List V5
Vulnerability Description
An 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 value to be turned into an object that is treated as an already-stored record of a caller-chosen model class. In applications that pass unfiltered request data into the affected association handling, an unauthenticated party may cause unintended modification or removal of stored records, and may render an individual record unreadable through that association.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
CWE-915
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
MongoDB Ruby Driver 9.1.0 ~ 9.1.3 -

II. Public POCs for CVE-2026-135227

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-135227

请登录查看更多情报信息。

Other References for CVE-2026-135227 (1)

Same Patch Batch · MongoDB · 2026-11-25 · 21 CVEs total

CVE-2026-135224 9.1 CRITICAL Improper validation of OCSP responder authorization in the C Driver
CVE-2026-135898 8.2 HIGH Out-of-bounds read in BSON array decoding in the Python Driver C extension
CVE-2026-135147 8.2 HIGH Improper neutralization of query expressions in incrementEach() and decrementEach() in Lar
CVE-2026-135144 8.1 HIGH Missing authorization when beforeQuery callbacks are skipped in Laravel MongoDB
CVE-2026-135145 8.1 HIGH Incorrect authorization in whereDoesntHave morph-map handling in Laravel MongoDB
CVE-2026-135141 8.1 HIGH Incorrect authorization from a discarded default scope in Mongoid
CVE-2026-135133 7.8 HIGH Invalid pointer release for non-string option values in the PHP Driver
CVE-2026-135226 7.5 HIGH Type confusion in DBPointer handling in BSON Ruby Extended JSON parsing
CVE-2026-135146 7.4 HIGH Improper certificate revocation check for stapled OCSP responses in the Python Driver
CVE-2026-135228 6.5 MEDIUM Mass assignment guard bypass in the Laravel MongoDB Eloquent integration
CVE-2026-135139 6.5 MEDIUM Incorrect authorization in has_many delete_all in Mongoid
CVE-2026-135138 6.5 MEDIUM Improper restriction of read-only attributes with dotted keys in Mongoid
CVE-2026-135135 6.5 MEDIUM Cleartext storage of encrypted embedded fields that use store_as in Mongoid
CVE-2026-135142 6.5 MEDIUM Incorrect authorization in embedded relation writes in Laravel MongoDB
CVE-2026-135134 5.9 MEDIUM NULL pointer dereference when parsing server hello replies in the C Driver
CVE-2026-135225 5.5 MEDIUM Sensitive information in error messages from the Ruby Driver connection string parser
CVE-2026-135897 5.5 MEDIUM Sensitive information in connection string parse errors in the Rust Driver
CVE-2026-135140 4.3 MEDIUM Cleartext storage of encrypted foreign key fields in Mongoid
CVE-2026-135223 4.3 MEDIUM Memory leak on duplicate fields in key vault documents in libmongocrypt
CVE-2026-135222 3.3 LOW Incorrect authorization in AWS credential selection in the C Driver

IV. Related Vulnerabilities