# CVE-2026-93758: Mongoid insecure direct object reference in nested attributes

Source: https://junglewise.ai/threats/cve-2026-93758-an-insecure-direct-object-reference-in-the-nested-attributes  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-09-18. Updated: 2026-09-26  
License: CC BY 4.0 with a link back

CVE-2026-93758 · Severity: high · CVSS 8.1 · Published 2026-09-18

Mongoid is a Ruby object-document mapper that bridges Ruby applications to MongoDB databases. A vulnerability in how nested attributes are processed allows an authenticated user to modify records belonging to other users by directly referencing their database identifiers, potentially exposing and altering sensitive data across the application without proper authorization checks.

Technologies: [MongoDB Mongoid](https://junglewise.ai/threats/technologies/mongoid). Vendors: [MongoDB](https://junglewise.ai/threats/vendors/mongodb).

## Quick answers

**Is CVE-2026-93758 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-93758 being exploited in the wild.

**How severe is CVE-2026-93758?** High severity, with a CVSS score of 8.1, published 18 September 2026.

**Which products and versions are affected?** MongoDB Mongoid.

**Is there a fix for CVE-2026-93758?** No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.

**How is CVE-2026-93758 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-93758?** Check whether you run MongoDB Mongoid. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## Technical details

An insecure direct object reference (IDOR) flaw in Mongoid's nested attributes handling allows authenticated attackers to bypass ownership and scoping restrictions. By crafting requests with arbitrary record identifiers, attackers can retrieve and modify records without authorization; the vulnerability exists because direct object references are processed without sufficient access control validation before lookup and update operations.

## Affected products

- MongoDB Mongoid

## Timeline

- 2026-09-18: disclosed

## References

- [https://jira.mongodb.org/browse/MONGOID-5992](https://jira.mongodb.org/browse/MONGOID-5992)

## Related threats

- [Mongoid client-side encryption omission in embedded models](https://junglewise.ai/threats/cve-2026-93764-mongoid-may-omit-encryption-rules-for-fields-declared-on-embedded)
- [Mongoid unsafe reflection weakness in query path for embedded documents](https://junglewise.ai/threats/cve-2026-93762-mongoid-contains-an-unsafe-reflection-weakness-in-the-query-path)
- [Mongoid inefficient regex complexity in query evaluation](https://junglewise.ai/threats/cve-2026-93761-an-inefficient-regular-expression-complexity-issue-in-the-in)
- [Mongoid query operator injection via unsanitized filter parameters](https://junglewise.ai/threats/cve-2026-93760-mongoid-does-not-restrict-which-query-operators-may-come-from)
- [Mongoid query builder NoSQL injection via string criteria](https://junglewise.ai/threats/cve-2026-93759-mongoid-does-not-neutralize-a-string-typed-query-criterion)
