Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as basic app user
-
DeliveryCraft nested-attributes payload with foreign record _id
-
ExploitSubmit to endpoint accepting nested attributes
-
ExecutionMongoid loads record without ownership scoping
-
PersistForeign record updated and re-linked to attacker
-
ImpactCross-user data disclosure and tampering
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Requires an authenticated basic-privilege account (PR:L) on an application built with the Mongoid ODM. The specific enabling condition is that the downstream application uses Mongoid's nested-attributes handling (accepts_nested_attributes_for) on an ownership- or tenant-scoped association, and relies on Mongoid to enforce scoping when resolving a supplied record _id. Exploitation is LIMITED to such code paths: applications that do not expose nested-attributes on scoped associations, or that independently authorize record ownership, are not exploitable. No user interaction is needed (UI:N), and the vector is network-reachable (AV:N), but affected/fixed Mongoid versions are unconfirmed because the only reference is a MongoDB Jira ticket with an unbounded CPE. |
| Impact | The vendor CVSS 4.0 score of 8.6 (High) rests on AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N - a network-reachable, low-complexity, low-privilege authorization flaw with high confidentiality and integrity impact and no availability impact. I substantially agree; my own CVSS 3.1 equivalent is ~8.1 (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N). However, several signals temper real-world priority: there is NO EPSS score, NO CISA KEV listing, and NO public POC in the provided data - so exploitation is unproven and there is no public exploit identified at time of analysis. Critically, the single reference is a MongoDB Jira ticket (MONGOID-5992) with no advisory body, no patched-version bound, and an unbounded CPE (mongoid:*), so affected/fixed versions are UNVERIFIED. The most important limiting factor is that this is a library-level (framework) weakness whose exploitability is gated on the downstream application: it only manifests where the app uses Mongoid's nested-attributes handling (accepts_nested_attributes_for) on ownership-scoped associations without additional authorization. Thus the '8.6' represents a genuine authorization/IDOR risk in a widely-used ODM, but real exploitation depends on specific downstream usage patterns rather than being universally reachable. This is a real, credible authorization bug worth patching, not a high-CVSS-but-fictional issue - but the absence of KEV/EPSS/POC signals suggests it is not currently under active or widespread exploitation. |
| Exploit ScenarioDerived | An authenticated basic-privilege user of a Rails/MongoDB application submits a form or API request whose nested-attributes payload includes the _id of a record belonging to another user. Because Mongoid resolves that identifier without applying the usual ownership/scoping filter, the foreign record is loaded, updated per the attacker's input, and re-linked to the attacker's own record - disclosing and tampering with another tenant's data. No public POC is identified in the provided data, and exploitation requires an app that uses nested-attributes on scoped associations. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 18, 2026
Insecure direct object reference in Mongoid's nested-attributes handling lets an authenticated user with basic application privileges supply another user's record identifier, causing Mongoid to look up that record outside ownership or tenant scoping and then update and link it to the requester's own record-resulting in unintended disclosure and unauthorized modification of data. Exploitation is limited to applications that use accept_nested_attributes_for on ownership- or tenant-scoped associations and rely on Mongoid to enforce scoping; no public exploit identified at time of analysis, and no confirmed affected or fixed versions because the only reference is an unbounded MongoDB Jira advisory with a wildcard CPE.
RemediationAI
No vendor-released patch identified at time of analysis; the sole advisory is MongoDB Jira MONGOID-5992, which should be tracked for a fixed Mongoid release and any version-specific guidance. Until a patched version is confirmed, the strongest compensating control is to avoid resolving user-supplied _id values through accept_nested_attributes_for on ownership- or tenant-scoped associations-either by disabling nested attributes for those associations (trade-off: breaks nested form submissions and may require API redesign) or by explicitly scoping lookups to the current user or tenant and authorizing ownership before any update or link operation. Also restrict permitted parameters so clients cannot inject id fields into nested attribute hashes, and add server-side ownership checks on update paths; these controls require application code changes but do not depend on upgrading the gem.
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 object-document mapper (ODM) for MongoDB, and the flaw is an instance of CWE-639 (Authorization Bypass Through User-Controlled Key). In affected code paths, the application accepts nested attributes for an association and passes a client-supplied record _id into Mongoid's nested-attributes processing; Mongoid resolves that _id to a document without applying the expected ownership or tenant scoping, then applies updates and links the document to the requesting user's own record. The independent assessment confirms a CVSS 3.1 vector of AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N, meaning a network-reachable, low-complexity attack that requires an authenticated basic-privilege account on an application built with Mongoid, with no user interaction and no availability impact; the vendor's CVSS 4.0 score of 8.6 is consistent with high confidentiality and integrity impact. The CPE cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*:* is unbounded, so precise affected and fixed versions cannot be confirmed from the available data, and the only reference is MongoDB Jira MONGOID-5992.
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:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
Network-reachable, low-complexity IDOR by an authenticated basic user (PR:L); high confidentiality and integrity from cross-user read/modify, no availability impact (A:N).
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
DescriptionCVE.org
An insecure direct object reference in the nested attributes handling of the Mongoid object-document mapper may allow a user with basic application privileges to reference a record identifier that is not their own. Processing such a request can cause that record to be looked up without the usual ownership or scoping restrictions, then updated and linked to the requesting user's own record. This may result in unintended disclosure and unauthorized modification of data belonging to other users of the application.
Executive ViewAI
A high-severity access-control flaw in Mongoid, the MongoDB object-document mapper used by Ruby on Rails and other Ruby applications, allows a user with basic application privileges to read and modify records belonging to other users or tenants by supplying a foreign record identifier through nested-attribute handling. Organizations running Mongoid-backed applications that use accept_nested_attributes_for on ownership- or tenant-scoped associations are exposed to cross-tenant data disclosure and unauthorized data modification, which can translate into customer-notification obligations, contractual breaches, and regulatory exposure. Because no vendor patch or confirmed fixed version has been identified, leadership should treat this as an open risk requiring application-layer mitigation rather than waiting on an upstream release. Exploitation status: no public exploit identified at time of analysis.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce server-side ownership and tenant authorization on every nested identifier before lookup or write; stop trusting Mongoid for scoping and validate record ownership explicitly in the application layer; remove foreign-key fields from permitted nested-attribute parameters; disable or restrict accept_nested_attributes_for on ownership- and tenant-scoped associations where feasible; apply least-privilege database credentials to limit blast radius; and add logging and alerting for cross-tenant or cross-owner record access attempts.
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
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 client-side encryption can silently store values that an application declared for encryption as clea
EUVD-2026-83188
GHSA-7x44-w6qh-mj7w
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB