Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint forwarding raw filter params
-
DeliveryInject MongoDB query operators in filter data
-
ExploitMongoid builds query without operator whitelist
-
ExecutionDatabase evaluates attacker-controlled operators
-
ImpactDisclose 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
Primary rating from Vendor (mongodb).
CVSS VectorVendor: mongodb
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
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.
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
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
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.
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
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-83210
GHSA-mm58-qxpf-v4c7
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB