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

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-135138— Improper restriction of read-only attributes with dotted keys in Mongoid

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.

Mongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller. In an application that forwards caller-supplied attribute names into a document update, a user with basic application privileges

CVSS 6.5 · Medium
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-135138

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 read-only attributes with dotted keys in Mongoid
Source: CVE Program / CVE List V5
Vulnerability Description
Mongoid does not consistently apply its read-only attribute protection when attribute names are supplied dynamically by the caller. In an application that forwards caller-supplied attribute names into a document update, a user with basic application privileges may change values held inside a field the model declared immutable. This may result in unintended modification of data the application treats as trusted, such as flags used for its own access decisions.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
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 3.0.0 ~ 9.1.3 -

II. Public POCs for CVE-2026-135138

# 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-135138

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

Other References for CVE-2026-135138 (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-135227 8.2 HIGH Improper restriction of object attributes in Mongoid belongs_to assignment
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-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