CVE-2026-93759

Summary

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 Software

VendorProductVersion RangeStatus
MongoDB Inc.Mongoid9.1.0affected
MongoDB Inc.Mongoid9.0.0 <= 9.0.11affected
MongoDB Inc.Mongoid8.1.0 <= 8.1.12affected
MongoDB Inc.Mongoid8.0.0 <= 8.0.12affected

Weaknesses

  • CWE-94: CWE-94: Improper Control of Generation of Code ('Code Injection')

References