Skip to content
DayZeroHub
Medium Not yet writtenCVSS 6CVE-2026-135138

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

MongoDB Ruby Driver

Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.

Summary

CVE-2026-135138: medium-severity vulnerability (CVSS 6) in MongoDB Ruby Driver.

What happened

Original description from the source: 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.

Why it matters

Medium severity, CVSS 6.

Affected products and versions

MongoDB Ruby Driver >= 3.0.0, < 9.1.3

ProductVersionsFixed in
MongoDB Ruby Driver>= 3.0.0, < 9.1.3—

Action recommended by the source

See the official references for the fix or mitigation.

Information taken from the source or the vendor. Verify it at the original link before acting.

Sources and references

Weaknesses (CWE): CWE-915

Relevant change history

  1. Published

    Preliminary advisory published.