Skip to content
MongoDBCVE-2026-93759

MongoDB Mongoid: code injection

High8.8CVE-2026-93759 · Published Sep 18, 2026 · updated Sep 24, 2026

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.

MongoDB advisory

Affected versions

PackageAffectedFixed in
Mongoid
Product
<= 9.1.0No fix yet
>= 9.0.0, <= 9.0.11No fix yet
>= 8.1.0, <= 8.1.12No fix yet
>= 8.0.0, <= 8.0.12No fix yet
Details and references
CVSS 4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Severity from
the vendor (its own CVE record or advisory)
Weakness
CWE-94

More MongoDB advisories

All MongoDB
Advisory
MongoDB Mongoid: unsafe reflection
Critical9.2Sep 18
MongoDB Mongoid: information disclosure
High7.1Sep 18
MongoDB Mongoid: cleartext storage
High7.1Sep 18
Mongoid does not restrict
High8.3Sep 18
MongoDB Mongoid: regular expression denial of service
High8.7Sep 18
MongoDB Mongoid: insecure direct object reference
High8.6Sep 18

Critical advisories by email

Wednesdays: the week’s critical and high advisories in the AI and data stack, with the fixed versions. Only in weeks that have some.

Double opt-in. Unsubscribe any time.