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

- Severity: Medium 6.0 (CVSS:4.0, scored by mongodb) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 43% of CVEs (2026-12-01)
- Published: 2026-11-25T17:45:52.956Z
- Modified: 2026-11-25T20:15:25.900Z
- Weaknesses: CWE-915
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mongodb

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

(As written by CVE List.)

## Affected

- MongoDB Ruby Driver: from 3.0.0 before 9.1.3

## Every score

- mongodb: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N`
- mongodb: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

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

## Sources

- CVE List: [CVE-2026-135138](https://www.cve.org/CVERecord?id=CVE-2026-135138), CVE Terms of Use, modified 2026-11-25
- NVD: [CVE-2026-135138](https://nvd.nist.gov/vuln/detail/CVE-2026-135138), Public domain, modified 2026-11-25

---

Page: https://cve.day/CVE-2026-135138 · Whole record: https://cve.day/CVE-2026-135138.json · Rebuilt by cve.day 2026-11-25T23:18:34.679Z
