RubySec

Providing security resources for the Ruby community

CVE-2026-126818 (mongoid): Improper Encryption of Inherited Model Fields Leads to Information Disclosure

Improper Encryption of Inherited Model Fields Leads to Information Disclosure

Published: November 13, 2026

SECURITY IDENTIFIERS

GEM

mongoid

SEVERITY

CVSS v3.x: 6.5 (Medium)

PATCHED VERSIONS

~> 9.0.13 >= 9.1.2

DESCRIPTION

A Ruby object-document mapper does not apply its automatic field-level encryption configuration to certain fields when the data model uses class inheritance. Values the application designated for encryption are written to the database in readable form without any error or warning. A database account holding only read access to the application's collections, and no access to the encryption key store, may obtain those values.

RELATED