Skip to main content

Mongoid CVE-2026-93762

| EUVDEUVD-2026-83203 CRITICAL
Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') (CWE-470)
2026-09-18 mongodb GHSA-36hj-r7fq-q38m
9.2
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint passing user field name to Mongoid
  2. Delivery
    Craft malicious field-name parameter
  3. Exploit
    Trigger unsafe reflection in embedded query path
  4. Execution
    Disclose stored document data
  5. Impact
    Invoke method permanently removing records

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V15 - Secure Coding and Architecture Reflection safety, class allowlisting
Exploitation Conditions

Requires an application built on Mongoid that passes an externally/user-supplied field name into the affected in-memory query methods for embedded documents - this untrusted-input-to-field-name data flow is the explicit prerequisite (reflected as AT:P in the CVSS 4.0 vector). Where the application hardcodes or allow-lists field names, the vulnerable path is not reached. No authentication is required (PR:N) and no user interaction (UI:N), so once such an endpoint exists it is reachable by a remote unauthenticated attacker. Limiting factors: the flaw is developer/config-dependent rather than exploitable against a default Mongoid install, and the specific affected and fixed versions are not confirmed in the available data (CPE is unbounded).

Impact

The vendor CVSS 4.0 base score of 9.2 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) rates this Critical, driven by an unauthenticated network vector and high impact across confidentiality, integrity, and availability (data disclosure plus permanent record removal). The single most important qualifier is AT:P (Attack Requirement: Present): exploitation is not against a stock Mongoid install but only where the downstream application forwards an externally supplied field name into the affected in-memory embedded-document query methods (CWE-470 unsafe reflection). That developer-dependent condition materially lowers real-world reach versus what the 9.2 headline implies - reflected in a CVSS 3.1 equivalent nearer 8.1 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H), where AT:P maps to AC:H. No EPSS score, no CISA KEV listing, and no public exploit are present in the provided data, so there is no evidence of active or automated exploitation - status is no public exploit identified at time of analysis. Net: a genuinely serious library flaw for applications matching the vulnerable pattern, but not a mass-exploitable default-config internet threat; prioritize where an app is known to route untrusted input into Mongoid field-name parameters. Note the intelligence set is thin - the only reference is a MongoDB Jira ticket (MONGOID-5973) with no advisory body, fixed version, or patch commit, so the exact affected/fixed versions are unconfirmed.

Exploit ScenarioDerived

An application exposes a search or filter endpoint that accepts a user-supplied field name and passes it into a Mongoid in-memory query method over embedded documents. An unauthenticated attacker submits a crafted field-name parameter that abuses the unsafe reflection to read document data they should not see, and to invoke a method that permanently deletes stored records. No public exploit code is identified at time of analysis; exploitation depends on the application forwarding untrusted input to the affected methods.

Act Now Prioritize within 24-48h. Why: CRITICAL severity + public POC available.
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 18, 2026

Data disclosure and permanent record deletion in Mongoid can be triggered by an unauthenticated remote attacker when an application passes an externally supplied field name to certain in-memory query methods for embedded documents, exploiting an unsafe reflection weakness (CWE-470). The vendor CVSS 4.0 base score of 9.2 reflects the network vector and high impact across confidentiality, integrity, and availability, though the attack requires a developer-dependent data flow (AT:P) where untrusted input reaches a field name parameter. No public exploit code or active exploitation has been identified at time of analysis, and affected/fixed versions remain unconfirmed due to an unbounded CPE (mongoid:*).

RemediationAI

No vendor-released patch has been identified in the available data; monitor the MongoDB Jira issue MONGOID-5973 for a fix. As compensating controls, ensure that field names passed to Mongoid query methods are never derived from unvalidated user input-use strict allow-listing or mapping of permitted field names, or sanitize input to reject unexpected values. Where possible, avoid exposing endpoints that construct queries with user-controlled field names; if such endpoints are necessary, enforce additional input validation and consider restricting the query capabilities. Note that authentication-based access controls are not a mitigation because the vulnerability is unauthenticated (PR:N). Once a patched version is released, upgrade Mongoid to that version; verify the fix by testing that user-supplied field names cannot reach the vulnerable query methods. There is no evidence of active exploitation, so prioritization should focus on identifying affected code paths and applying the above controls.

Affected VersionsENISA

Mongoid 9.0.0 ≤9.0.11
Mongoid 9.1.0
Mongoid 7.6.0 ≤7.6.1
Mongoid 8.1.0 ≤8.1.12
Mongoid 8.0.0 ≤8.0.12
Mongoid 7.5.0 ≤7.5.4

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 a MongoDB Object-Document Mapper (ODM) for Ruby applications that provides an ActiveRecord-like interface for MongoDB. The vulnerability arises from CWE-470 (Use of Externally-Controlled Input to Select Classes or Code, or 'Unsafe Reflection') in the query path for embedded documents: in-memory query methods (such as those used for filtering or accessing embedded associations) dynamically resolve field names, and when an application passes a user-controlled string as a field name, an attacker can manipulate the query to access or delete unintended data. The CPE cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*:* indicates all versions are potentially affected, as no version range is specified. The vendor Jira issue MONGOID-5973 likely tracks the fix; however, the exact affected and fixed versions are not confirmed in the available data. Our independent assessment rates this as CVSS 3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, reflecting that the attack is unauthenticated and network-reachable but requires a specific application-level data flow (high attack complexity) where untrusted input is used as a field name.

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 9.2 CRITICAL
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network unauthenticated (AV:N/PR:N); AC:H because exploitation is gated on the app forwarding untrusted field names (AT:P equivalent); C:H disclosure, I:H/A:H from permanent record removal.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/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
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Mongoid contains an unsafe reflection weakness in the query path used for embedded documents. An application that passes an externally supplied field name to certain in-memory query methods may allow an unauthenticated party to obtain unintended disclosure of stored document data and to permanently remove stored records.

Executive ViewAI

Why It Matters

Mongoid, a Ruby ODM for MongoDB, is affected by a critical vulnerability (CVE-2026-93762, CVSS 9.2) that could allow remote data disclosure and permanent deletion of embedded document records. Exploitation requires an application to pass externally controlled field names to certain in-memory query methods, but the potential impact across confidentiality, integrity, and availability is high. With no vendor-released patch identified at time of analysis and no public exploit identified at time of analysis, leadership should prioritize immediate mitigation and monitoring.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: enforce strict allowlist validation of field names; never pass externally supplied field names to in-memory query methods for embedded documents; apply input sanitization; restrict network access to MongoDB; monitor for anomalous data access and deletion; and consider using alternative query construction with static field names.

Threat Intelligence Overview

EPSS Score
0.3%
Top 73% exploitable
Prevalence
Medium
official MongoDB Ruby ODM, common in Rails/Ruby MongoDB apps but not everywhere
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub

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 CRITICAL
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity + public POC available
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
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

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