Skip to main content

Mongoid CVE-2026-93760

| EUVDEUVD-2026-83210 HIGH
Improper Neutralization of Special Elements in Data Query Logic (CWE-943)
2026-09-18 mongodb GHSA-mm58-qxpf-v4c7
8.3
CVSS 4.0 · Vendor: mongodb
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint forwarding raw filter params
  2. Delivery
    Inject MongoDB query operators in filter data
  3. Exploit
    Mongoid builds query without operator whitelist
  4. Execution
    Database evaluates attacker-controlled operators
  5. Impact
    Disclose stored field values / degrade DB performance

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Query language parameterization
Exploitation Conditions

Exploitation requires an application built on Mongoid that accepts externally supplied filter/query parameters and forwards them into Mongoid query-building methods without restricting or whitelisting allowed MongoDB query operators. This precondition is reflected as AT:P in the vendor CVSS 4.0 vector. Where the app validates or coerces filter input, or exposes only fixed/parameterized queries, the vulnerability is not reachable. No authentication is required (PR:N/UI:N) once such a vulnerable forwarding path exists; the limiting factor is entirely the downstream application's query-construction pattern, not a Mongoid configuration toggle.

Impact

This is a NoSQL/query-operator injection (CWE-943) in Mongoid, the official MongoDB Ruby ODM. The vendor CVSS 4.0 vector (8.3, AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L) is internally consistent with the description: network-reachable, no privileges required, but crucially AT:P (Attack Requirements: Present). That AT:P is the single most important signal - exploitation is NOT possible against Mongoid generically. It requires a downstream application that forwards externally supplied filter parameters directly into Mongoid's query-building methods without whitelisting operators. This makes the flaw conditional/library-dependent rather than a turnkey remote exploit, and is why the raw 8.3 overstates real-world urgency for the typical deployment. Impact is genuinely confidentiality-led (VC:H - a party with no credentials can coerce operators like $gt/$ne/$regex/$where to disclose stored field values) plus limited availability degradation (VA:L - expensive query evaluation); there is no integrity impact (VI:N). No EPSS score, no CISA KEV listing, and no public POC are present in the provided intelligence, so there is no evidence of active or automated exploitation - this is a code-level advisory reported by the vendor (MongoDB) via an internal Jira ticket, not an in-the-wild threat. Net: a real and legitimate weakness worth patching in applications that pass raw filter input to Mongoid, but currently a lower operational priority than the headline 8.3 implies given the AT:P precondition and complete absence of exploitation signals.

Exploit ScenarioDerived

An application exposes a search/list endpoint that passes user-controlled JSON filter parameters straight into a Mongoid query method. An unauthenticated attacker submits filter data containing MongoDB query operators (e.g. {"password": {"$ne": null}} or a $regex/$where expression) to alter how the database evaluates the query, extracting stored field values they should not see or forcing slow full-collection scans. No public exploit code is identified in the available intelligence, and the attack only works where the app forwards raw operators without sanitization.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
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

Unauthenticated, remote query-operator injection in Mongoid - the official MongoDB object-document mapper for Ruby - allows an attacker to shape how MongoDB evaluates a query whenever an application forwards externally supplied filter parameters straight into Mongoid query-building methods without whitelisting allowed operators. Successful abuse can disclose stored field values (for example through $ne, $gt or $regex-style filter logic used for blind extraction) and, because operators such as $regex or $where can force expensive scans, can degrade database performance. The impact is conditional: the vendor's CVSS 4.0 vector carries AT:P (attack requirements present) and our assessment uses AC:H, because exploitation depends entirely on the downstream application's query-construction pattern rather than on a Mongoid setting. No public exploit code was identified at time of analysis, and the issue is not listed in CISA KEV; EPSS data was not provided. CVSS 4.0 base is 8.3 (AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L) and our independent CVSS 3.1 assessment is AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L, i.e. high confidentiality impact with a limited availability effect and no integrity impact.

RemediationAI

No vendor-released patch with a specific fix version is identified in the available data; the MongoDB JIRA issue https://jira.mongodb.org/browse/MONGOID-5994 tracks the fix, and upgrading to the first Mongoid release that references it is the primary remediation once MongoDB publishes a version. Until then, treat this as an application-layer problem and apply targeted compensating controls. First, sanitize every externally supplied filter hash before it reaches Mongoid: strip or reject keys that begin with '$' or contain '.', and coerce values to expected scalar types (for example String(value), Integer(value) with rescue) so an operator object can never survive as a value; the trade-off is that legitimate advanced queries using operators must be moved server-side into hard-coded criteria. Second, replace raw hash forwarding with an explicit permit-list - Ruby strong-parameters style filtering or a schema/validation gem such as dry-schema, JSON Schema or Rails params.permit - that enumerates allowed filter fields and operators, accepting that some client flexibility is lost. Third, if the sanitization cannot be applied everywhere at once, insert Rack middleware that rejects incoming requests whose parameter keys contain '$' or '.', which is fast to deploy but will break clients that legitimately send such keys. Fourth, reduce blast radius with a least-privilege MongoDB user that can read only the collections the endpoint needs, so operator-driven disclosure is bounded to that data set. Fifth, cap the cost of abusive queries by setting maxTimeMS on queries, limiting page sizes, enforcing pagination and rate-limiting the affected endpoints; this does not stop disclosure but blunts the availability component of the risk. Finally, log and alert on requests containing MongoDB operator tokens and on slow or high-scan queries so injection attempts are detected during the window before a patched Mongoid release is deployed.

Affected VersionsENISA

Mongoid 8.1.0 ≤8.1.12
Mongoid 9.0.0 ≤9.0.11
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 ODM that maps Ruby objects to MongoDB documents and builds the query documents sent to the server. The root cause is CWE-943, Improper Neutralization of Special Elements in Data Query Logic: Mongoid does not restrict which MongoDB query operators may originate from caller-supplied filter data, so a hash such as {"field" => {"$ne" => nil}} or {"field" => {"$regex" => "^a"}} passed into methods like where, find or Criteria construction is interpreted as query logic rather than as an opaque value. In MongoDB's document query model, keys beginning with $ are operators and dotted keys address nested fields or array positions, so unvalidated user input effectively becomes part of the query AST. This is the NoSQL analogue of SQL injection and is catalogued with the NoSQL Injection tag. Typical abuse paths include authentication bypass by submitting an operator object where the application expects a scalar comparison, blind data extraction by probing $regex/$gt/$ne predicates, and resource exhaustion where operators such as $where, $expr or unanchored $regex force full-collection scans. The CPE record cpe:2.3:a:mongodb_inc.:mongoid:*:*:*:*:*:*:*:* is an unbounded wildcard, so the vendor has not published a bounded affected-version range; the intermediate layer is the Ruby application itself, and the MongoDB server version is not the vulnerable component. The CVSS 4.0 vector's AT:P and our AC:H both encode the same prerequisite: the flaw is only reachable where the application exposes a raw, externally fed filter surface.

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

Network unauthenticated (AV:N/PR:N) but reachable only when the app forwards untrusted filter operators, so AC:H; confidentiality-led disclosure (C:H) with minor performance DoS (A:L) and no integrity impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
Red Hat 8.2 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
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

Mongoid does not restrict which query operators may come from caller-supplied filter data when an application hands that data to its query-building methods. In an application that forwards externally supplied filter parameters in this way, a party with no credentials may influence how the database evaluates the query. This may result in unintended disclosure of stored field values and in reduced database performance.

Executive ViewAI

Why It Matters

Mongoid, the official MongoDB object-document mapper for Ruby, carries an unpatched high-severity query-operator injection flaw (CVE-2026-93760, CVSS 8.3) that lets an attacker shape how MongoDB evaluates queries in any application that forwards externally supplied filter parameters directly into Mongoid query builders. Where that coding pattern exists, an attacker could extract stored field values through blind filter-based probing and degrade database performance with forced scans, putting customer-facing Ruby services and their MongoDB data at risk. Exposure is conditional on how each application builds queries rather than on a Mongoid configuration setting, so leadership should treat this as an application input-validation and code-review issue spanning every Mongoid-backed service, not a perimeter problem.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: strict allowlisting of permitted query fields and operators; rejection of user-supplied keys beginning with '$'; coercion of parameters to expected BSON types before query construction; exclusion of $where and unbounded $regex; least-privilege MongoDB service accounts; disabling server-side JavaScript in MongoDB; and query timeouts (maxTimeMS) with alerting on anomalous scan-heavy queries.

Threat Intelligence Overview

EPSS Score
0.3%
Top 79% exploitable
Prevalence
Medium
official MongoDB Ruby ODM, widely used but Ruby-ecosystem-scoped
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor CIRCL 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 HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
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
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

62
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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.

NoSQL injection exploits databases that don't use traditional SQL syntax-like MongoDB, CouchDB, or Redis-by manipulating queries through unsanitized user input.

Vendor StatusVendor

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