Skip to main content

Mongoid CVE-2026-135138

| EUVDEUVD-2026-135622 MEDIUM
Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915)
2026-11-25 mongodb GHSA-wrx7-gv98-4q54
6.0
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with basic app privileges
  2. Exploit
    Submit crafted attribute name in update request
  3. Execution
    Bypass read-only attribute protection
  4. Impact
    Modify trusted immutable field (e.g. access flag)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V4 - API and Web Service Object attribute protection
Exploitation Conditions

Exploitation requires an application built on Mongoid that forwards caller-supplied attribute names directly into a document update (a dynamic mass-assignment pattern); the AT:P metric reflects exactly this application-side precondition. The attacker must already hold basic authenticated application privileges (PR:L). Impact is meaningful only when the dynamically-modifiable read-only field is itself security-relevant - for example a flag the application uses for access decisions. Key limiting factors: applications that whitelist or statically map permitted attributes are not exposed; unauthenticated users cannot trigger it; and there is no confidentiality or availability impact, only unintended modification of a field the model declared immutable.

Impact

This is a medium-severity integrity flaw (CVSS 4.0 base 6.0) in Mongoid's read-only attribute protection (CWE-915, dynamically-controlled object attribute modification). The signals point to a genuine-but-bounded issue rather than an emergency: the CVSS vector shows network reach (AV:N) but requires existing basic privileges (PR:L, i.e. authenticated per the vector) AND a specific attack requirement (AT:P) - namely an application that forwards caller-supplied attribute names into a document update. Impact is integrity-only (VI:H) with no confidentiality (VC:N) and no availability (VA:N) effect, so framing this as 'Information Disclosure' (per the input tag) contradicts the vector. The vuln.today decision label is 'this_month', not act_now/emergency, consistent with a non-urgent but should-patch posture. No EPSS score, no CISA KEV listing, and no proof-of-concept were provided; the sole reference is a MongoDB Jira tracker (MONGOID-6035), not exploit code. Net: real priority for apps that dynamically forward attribute names into Mongoid updates - especially where an immutable field backs an access-control decision - but low mass-exploitation risk given the required privilege level and application-specific coding pattern. Missing data to verify: no fixed version, EPSS, or independent advisory was supplied, so exact affected/patched ranges are unconfirmed.

Exploit ScenarioDerived

In a Ruby application that passes user-supplied attribute names straight into a Mongoid document update (a mass-assignment-style pattern), an authenticated user with ordinary privileges submits a request naming a field the model declared read-only - for example an admin or role flag. Because Mongoid does not consistently enforce read-only protection for dynamically-supplied attribute names, the immutable field is changed, letting the user tamper with data the application trusts for its own access decisions. No public exploit code was identified at time of analysis; the only reference is the MongoDB Jira issue.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 25, 2026

Mongoid, MongoDB's Ruby object-document mapper, does not consistently enforce its read-only attribute protection when attribute names are supplied dynamically by the caller, so an update path that forwards caller-controlled attribute names can overwrite a field the model declared immutable. Only applications that pass user-supplied attribute names straight into document updates are exposed, and the attacker must already hold basic application privileges (CVSS 4.0 vector shows PR:L, AT:P); impact is limited to integrity and becomes meaningful when the field that can be modified is itself security-relevant, such as a flag the application consults for its own access decisions. Confidentiality and availability are unaffected, exploitation requires a specific application-side coding pattern, and no public exploit was identified at time of analysis; priority is moderate (this_month).

RemediationAI

No vendor-released patch was identified at time of analysis and no fixed version is listed in the available data; the MongoDB JIRA issue at https://jira.mongodb.org/browse/MONGOID-6035 is the tracking reference to monitor for the patched release. Until a fixed version is confirmed, the effective mitigation is application-side: stop forwarding caller-supplied attribute names into Mongoid updates and instead whitelist or statically map the permitted attributes for each model, which removes the dynamic mass-assignment path entirely - the trade-off is that any legitimate feature relying on flexible or user-defined fields must be reworked, and overly permissive whitelists reintroduce the issue. Where dynamic updates must be retained, explicitly exclude attributes declared read-only or immutable and reject requests that name them, accepting that such validation must be maintained as models evolve. Because impact materializes when the mutable field is used for the application's own access decisions, review models that store authorization flags or trusted state in read-only attributes and treat those values as untrusted or re-derive them server-side; note that this reduces exposure but does not fix the underlying inconsistency in Mongoid's attribute protection.

Affected VersionsENISA

Ruby Driver 3.0.0 <9.1.3

Affected Packages

euvd ruby_driver fix: 9.1.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mongoid is the Ruby ODM layer over the MongoDB Ruby Driver (the affected CPE is cpe:2.3:a:mongodb:ruby_driver:*:*:*:*:*:*:*:*), and the flaw belongs to CWE-915, dynamically-controlled object attribute modification - the mass-assignment class in which the set of attributes written to a document is determined by input the caller controls rather than by a fixed schema. The root cause is inconsistent application of the read-only/immutable attribute marking: when attribute names arrive dynamically, the protection is not applied the same way it is for statically named writes, so a field the model declared immutable can still be assigned. The CVSS 4.0 vector carries AT:P rather than a mechanism-specific metric, reflecting the fact that the attack requires a specific vulnerable deployment pattern: an application built on Mongoid that takes attribute names from the caller and forwards them directly into a document update. No further trigger detail is described in the available sources. The exploiter must already be an authenticated application user with basic privileges, and there is no confidentiality or availability impact - only modification of data the application may treat as trusted.

Know when Mongoid gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mongodb) PRIMARY 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
vuln.today AI 5.3 MEDIUM

Network-reachable (AV:N) but needs an authenticated basic user (PR:L) and an application that forwards attribute names, mapping the 4.0 AT:P requirement to AC:H; integrity-only impact (I:H), no C or A.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Nov 25, 2026 - 19:18 EUVD

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.5%
Top 66% exploitable
Prevalence
Medium
popular Ruby ODM, but limited to MongoDB-backed Ruby/Rails applications
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2026-93762 CRITICAL POC
9.2 Sep 18

Data disclosure and permanent record deletion in Mongoid can be triggered by an unauthenticated remote attacker when an

CVE-2026-93759 HIGH POC
8.8 Sep 18

Code injection in Mongoid allows unauthenticated attackers who can influence a query argument to execute arbitrary JavaS

CVE-2026-93761 HIGH POC
8.7 Sep 18

CPU exhaustion in MongoDB's Mongoid Ruby ODM allows an unauthenticated remote party to render an embedding application u

CVE-2026-93758 HIGH POC
8.6 Sep 18

Insecure direct object reference in Mongoid's nested-attributes handling lets an authenticated user with basic applicati

CVE-2026-93765 HIGH POC
8.3 Sep 18

Unsafe reflection (CWE-470) in Mongoid's document persistence layer allows a crafted key to be reflected into an interna

CVE-2026-93760 HIGH POC
8.3 Sep 18

Unauthenticated, remote query-operator injection in Mongoid - the official MongoDB object-document mapper for Ruby - all

CVE-2026-93763 HIGH POC
7.1 Sep 18

Silent, warning-free failure of encryption-configuration generation in the Mongoid object-document mapper causes fields

CVE-2026-93764 HIGH POC
7.1 Sep 18

Mongoid can silently persist values in readable form that applications intended to encrypt, because its client-side fiel

CVE-2026-135135 HIGH
7.1 Nov 25

Mongoid's automatic encryption can write values that an application declared as encrypted into MongoDB in cleartext for

CVE-2026-126817 MEDIUM
6.0 Nov 13

Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as clea

CVE-2026-135139 MEDIUM
6.0 Nov 25

Incorrect authorization in Mongoid's bulk-removal handling for referenced associations can delete records the caller nev

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy