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

- Priority: **Routine**
- Reason: Not severe (CVSS 6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-25 · Modified: 2026-11-25
- Record: https://cvemate.com/vulnerability/CVE-2026-135138 · JSON: https://cvemate.com/vulnerability/CVE-2026-135138/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.483%, percentile 43.313%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- mongodb ruby driver: ≥ 3.0.0, \< 9.1.3

## References

- <https://jira.mongodb.org/browse/MONGOID-6035>

---

Data as of 2026-12-05T04:05:25.841Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
