---
id: CVE-2026-93762
title: >-
  Mongoid contains an unsafe reflection weakness in the query path used for
  embedded documents
summary: >-
  Mongoid contains an unsafe reflection weakness in the query path used for
  embedded documents. An application that passes an externally supplied field
  name to certain in-memory query methods may allow an unauthenticated party to
  obtain un…
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-470
vendor: mongodb
product: mongoid
affected:
  - 'mongoid >= 7.5.0, < 7.5.4'
  - 'mongoid >= 7.6.0, < 7.6.2'
  - 'mongoid >= 8.0.0, < 8.0.12'
  - '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:05:13.747'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-93762'
references:
  - url: 'https://jira.mongodb.org/browse/MONGOID-5973'
    label: cna@mongodb.com
tags:
  - nvd
  - cve.org
epss: 0.00573
epssPercentile: 0.45047
ssvc:
  exploitation: none
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-09-21T18:17:03.301377Z'
ingestedAt: '2026-09-18T17:46:41.550Z'
---

## Overview

Mongoid contains an unsafe reflection weakness in the query path used for embedded documents. An application that passes an externally supplied field name to certain in-memory query methods may allow an unauthenticated party to obtain unintended disclosure of stored document data and to permanently remove stored records.

## Affected

- `mongoid >= 7.5.0, < 7.5.4`
- `mongoid >= 7.6.0, < 7.6.2`
- `mongoid >= 8.0.0, < 8.0.12`
- `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`
