Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with basic app privileges
-
ExploitSubmit crafted attribute name in update request
-
ExecutionBypass read-only attribute protection
-
ImpactModify 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
Lifecycle Timeline
1DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Data disclosure and permanent record deletion in Mongoid can be triggered by an unauthenticated remote attacker when an
Code injection in Mongoid allows unauthenticated attackers who can influence a query argument to execute arbitrary JavaS
CPU exhaustion in MongoDB's Mongoid Ruby ODM allows an unauthenticated remote party to render an embedding application u
Insecure direct object reference in Mongoid's nested-attributes handling lets an authenticated user with basic applicati
Unsafe reflection (CWE-470) in Mongoid's document persistence layer allows a crafted key to be reflected into an interna
Unauthenticated, remote query-operator injection in Mongoid - the official MongoDB object-document mapper for Ruby - all
Silent, warning-free failure of encryption-configuration generation in the Mongoid object-document mapper causes fields
Mongoid can silently persist values in readable form that applications intended to encrypt, because its client-side fiel
Mongoid's automatic encryption can write values that an application declared as encrypted into MongoDB in cleartext for
Mongoid's automatic client-side encryption can silently store values that an application declared for encryption as clea
Incorrect authorization in Mongoid's bulk-removal handling for referenced associations can delete records the caller nev
EUVD-2026-135622
GHSA-wrx7-gv98-4q54
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB