---
id: CVE-2026-93759
title: >-
  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
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 s…
severity: high
cvss: 8.6
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L'
cwe:
  - CWE-94
vendor: mongodb
product: mongoid
affected:
  - 'mongoid >= 8.0.0, < 8.0.13'
  - 'mongoid >= 8.1.0, < 8.1.13'
  - 'mongoid >= 9.0.0, < 9.0.12'
  - mongoid = 9.1.0
patched:
  - mongoid 9.0.12
published: '2026-09-18'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T16:19:37.887'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-93759'
references:
  - url: 'https://jira.mongodb.org/browse/MONGOID-5993'
    label: cna@mongodb.com
tags:
  - nvd
  - cve.org
epss: 0.00399
epssPercentile: 0.31293
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: partial
  timestamp: '2026-09-21T18:15:00.532379Z'
ingestedAt: '2026-09-18T17:46:41.538Z'
---

## Overview

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

- `mongoid >= 8.0.0, < 8.0.13`
- `mongoid >= 8.1.0, < 8.1.13`
- `mongoid >= 9.0.0, < 9.0.12`
- `mongoid = 9.1.0`

## Remediation

Upgrade past the affected range:

- `mongoid 9.0.12`
