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.
- CVSS
- 8.6High
- Chance of exploitation (EPSS)
- 0.43%
- Published
- Sep 18, 2026
- In the news
- Not yet
What to do
A serious code injection flaw in Mongodb Mongoid that can be attacked over the network without logging in. No attacks are reported yet; it can go in your normal patch cycle.
Action: Check the vendor's advisory in the references and apply updates as soon as they are available.
Affected versions
- Mongodb Mongoid
- 8.0.0 to through 8.0.12; 8.1.0 to through 8.1.12; 9.0.0 to through 9.0.11; 9.1.0
Description
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.
Affected products
Get alerts for these →Timeline 1
Latest change: CVE-2026-93759 published (CVSS 8.6) (Sep 18, 2026)
News, advisories, exploit code, scanner detection and exploitation, newest first.
Fri, Sep 18, 2026
- CVECVE-2026-93759 published (CVSS 8.6)CVE Program · 18:18 UTC
References 1
- jira.mongodb.org /browse/MONGOID-5993