CVE-2026-135138
published medium CVSS 4.0 · 6.0Improper restriction of read-only attributes with dotted keys in Mongoid
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| MongoDB | — | Ruby Driver3.0.0 to < 9.1.3 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.0 / 10
- Severity
- medium
- Provider
- mongodb · cna
- Vector string
- 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
- Scenarios
- en: GENERAL
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.5 | medium | mongodb · cna | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | en: GENERAL |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| MongoDB | Ruby Driver | 3.0.0 to < 9.1.3 (affected · semver)Default: unaffected | mongodb · cna |
Weaknesses
1- CWE-915 CWE-915: Improperly Controlled Modification of Dynamically-Determined Object Attributes
References
1Provider assertions
2mongodb · cna
Improper restriction of read-only attributes with dotted keys in Mongoid
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5b38a3a740859265eef7f3c95fdcaf5e514317aa6df25713323de20ac71383b9
- Ingested
- 25 Nov 2026, 19:12:07 UTC
- Source record
- Official CVE record