Skip to main content

Mongoid CVE-2026-93758

| EUVDEUVD-2026-83188 HIGH
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-09-18 mongodb GHSA-7x44-w6qh-mj7w
8.6
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as basic app user
  2. Delivery
    Craft nested-attributes payload with foreign record _id
  3. Exploit
    Submit to endpoint accepting nested attributes
  4. Execution
    Mongoid loads record without ownership scoping
  5. Persist
    Foreign record updated and re-linked to attacker
  6. Impact
    Cross-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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

Mongoid 9.0.0 ≤9.0.11
Mongoid 8.1.0 ≤8.1.12
Mongoid 8.0.0 ≤8.0.12
Mongoid 9.1.0

Affected Packages

euvd mongoid no fix

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

Vendor (mongodb) PRIMARY 8.6 HIGH
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
vuln.today AI 8.1 HIGH

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

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

Primary rating from Vendor (mongodb).

CVSS VectorVendor: mongodb

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 89% exploitable
Prevalence
Medium
official MongoDB Ruby ODM, but only Ruby/Rails-on-MongoDB subset of deployments
Exploit
POC
Public exploit code exists
Social Media
2
Sightings
Data Quality
5 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

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