# Mongoid fixes silent gaps in field encryption and record access

Canonical: https://www.oktsec.com/radar/mongodb-mongoid-9-1-3
Publisher: Oktsec
Language: en
Published: 2026-11-25T21:16:10Z
Updated: 2026-11-25T21:16:10Z
Record reviewed: 2026-11-25T21:16:10Z
Latest evidence check: 2026-11-25T21:16:10Z
Disclosed: 2026-11-25

Ruby applications using Mongoid could store certain fields in readable form even when their models declared them encrypted. Four other fixes address unintended changes, reads or removals under specific model and input conditions.

## Evidence and response priority

- Category: Vulnerability
- Oktsec priority: Review this week
- Rationale: Prioritize applications that rely on automatic field encryption or use model scopes and associations to restrict which records a user can access.
- Evidence: Attacks not established
- Verification: Vendor confirmed
- Fix status: Fix available
- Exposure requirement: Application or configuration dependent
- Vendor: MongoDB
- Products: Mongoid
- CVEs: CVE-2026-135135, CVE-2026-135140, CVE-2026-135138, CVE-2026-135139, CVE-2026-135141, CVE-2026-135227

## Technical overview

The two encryption issues affect Mongoid 9.0.0 through 9.1.2. One concerns embedded documents and the other a field that also references another record. A reader with ordinary database access could see values saved without encryption. The other four issues have different starting versions. Review the conditions for each before assessing exposure.

## Recommended response

Update the mongoid gem to 9.1.3. Identify affected field definitions and check existing records for readable values. Updating the gem alone does not demonstrate that previously written data was encrypted.

Relevant to: Teams operating Ruby applications that use Mongoid.

## CVE attribution

- CVE-2026-135135: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135135.json)
- CVE-2026-135140: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135140.json)
- CVE-2026-135138: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135138.json)
- CVE-2026-135139: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135139.json)
- CVE-2026-135141: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135141.json)
- CVE-2026-135227: MongoDB — Mongoid. [Source](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135227.json)

## Affected systems and fixes

### CVE-2026-135135 · Mongoid

Affected: 9.0.0 to before 9.1.3

Fixed release / action: 9.1.3

### CVE-2026-135140 · Mongoid

Affected: 9.0.0 to before 9.1.3

Fixed release / action: 9.1.3

### CVE-2026-135138 · Mongoid

Affected: 3.0.0 to before 9.1.3

Fixed release / action: 9.1.3

### CVE-2026-135139 · Mongoid

Affected: 2.1.0 to before 9.1.3

Fixed release / action: 9.1.3

### CVE-2026-135141 · Mongoid

Affected: 4.0.0 to before 9.1.3

Fixed release / action: 9.1.3

### CVE-2026-135227 · Mongoid

Affected: 9.1.0 to before 9.1.3

Fixed release / action: 9.1.3

Confirm the running version against the vendor advisory, including any distribution backports.

## CISA KEV evidence

Catalog: 2026.11.25
Checked: 2026-11-25T21:24:22.923Z

No matching CVE appears in the reviewed catalog snapshot.

CISA KEV inclusion establishes known exploitation of the listed CVE, not compromise of your environment. Absence does not rule out exploitation. The date added is not the first attack date. Federal deadlines and forensic triage requirements are context, not universal obligations for private organizations or businesses in Latin America.

## Supporting evidence

Snapshot checked: 2026-11-25T21:24:25.252Z. These dates do not change the incident’s editorial review date.

### FIRST EPSS forecast


No score returned for: CVE-2026-135135, CVE-2026-135140, CVE-2026-135138, CVE-2026-135139, CVE-2026-135141, CVE-2026-135227

EPSS is a prediction, not exploitation evidence or organization-specific risk. Confirmed exploitation takes precedence. A missing score is not zero. Check status: available; last successful check: 2026-11-25T21:24:25.252Z.

## Response checklist

1. **Identify deployed applications** — Check the gem version loaded by web processes and background workers.
2. **Check existing data** — Using an authorized review, verify how affected fields were stored and plan remediation for any readable values.
3. **Retest record boundaries** — On test records, confirm that account scopes, immutable fields and bulk actions enforce the intended limits.

## Relevance to AI environments

Include model writes performed by background agents that use the same Ruby application.

## Sources

- [Mongoid 9.1.3 release notes and six security fixes](https://github.com/mongodb/mongoid/releases/tag/v9.1.3) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135135 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135135.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135140 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135140.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135138 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135138.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135139 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135139.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135141 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135141.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z
- [CVE-2026-135227 record from MongoDB](https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/135xxx/CVE-2026-135227.json) — MongoDB; Vendor notice; checked 2026-11-25T21:16:10Z

## Editorial record

- 2026-11-25T21:16:10Z: Published affected configurations, corrected versions and operator checks.

## Use this advisory in Radar

Use the Advisory view to understand the issue and its evidence, Affected systems to compare versions, and Response plan to record applicability, an owner and action progress. Plans are saved only in the current browser and can be downloaded for sharing; they are not a shared team account or an automated scan. Completing a plan does not validate remediation. Talk to Oktsec opens a technical consultation with the advisory and selected service preserved. Scope, fees and access are agreed before any assessment.

[Open advisory](https://www.oktsec.com/radar/mongodb-mongoid-9-1-3) · [Build a response plan](https://www.oktsec.com/radar/mongodb-mongoid-9-1-3#review-workspace)

- [Patch verification consultation](https://www.oktsec.com/contact?source=radar&intent=assessment&item=mongodb-mongoid-9-1-3&service=patch_verification)

## Scope and corrections

Radar is a selected editorial collection, not a complete vulnerability database or a scan of your environment. Priorities are Oktsec analysis. Source confirmation and checklist completion do not establish whether your systems are compromised or secure.

[Sources and methodology](https://www.oktsec.com/radar/about). Report corrections with supporting sources to info@oktsec.com. Do not send secrets or private incident data.

