Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
8.9
CVE-2026-93759: Mongoid lets crafted queries execute arbitrary JavaScript
CVE-2026-93759 · published 1 month ago
Summary
Mongoid does not clean a string that is used as a query filter, so an attacker who can influence that filter can make the database run their own JavaScript code. This could expose hidden data, cause unwanted records to be changed, and slow the database down. Apply the latest Mongoid update or validate and sanitize all query inputs before they reach Mongoid.
What to do
The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| mongodb inc. | mongoid | 9.1.0 |
| mongodb | mongoid |
>= 8.0.0, < 8.0.13 >= 8.1.0, < 8.1.13 >= 9.0.0, < 9.0.12 9.1.0 cpe:2.3:a:mongodb:mongoid:*:*:*:*:*:*:*:* |
Original advisory text
Server-side JavaScript injection via string query criteria bypassing the strict operator allowlist
Mongoid does not neutralize a string-typed query criterion supplied to its query builder, and instead passes it to the database as a server-side JavaScript expression. An unauthenticated party able to influence the value an application supplies as a query argument may cause code of their choosing to be evaluated by the database engine. This may result in unintended disclosure of stored field values, unintended selection of documents for application-initiated writes, and reduced database performance.
References
Internet-facing
14 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker partial control
Severity
8.9
High
Type
CWE-94Code Injection
Timeline
Published18 Sep 2026
Updated4 Nov 2026
First seen18 Sep 2026
Track software like this
Free during beta