CVE-2026-93759 PUBLISHED

Server-side JavaScript injection via string query criteria bypassing the strict operator allowlist

Assigner: mongodb
Reserved: 18.09.2026 Published: 18.09.2026 Updated: 18.09.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.

Metrics

CVSS Vector: 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
CVSS Score: 8.8

Product Status

Vendor MongoDB Inc.
Product Mongoid
Versions Default: unaffected
  • Version 9.1.0 is affected
  • affected from 9.0.0 to 9.0.11 (incl.)
  • affected from 8.1.0 to 8.1.12 (incl.)
  • affected from 8.0.0 to 8.0.12 (incl.)

References

Problem Types

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