Improper Encryption of Inherited Model Fields Leads to Information Disclosure
Published: November 13, 2026
SECURITY IDENTIFIERS
- CVE: CVE-2026-126818 (NVD)
- GHSA: GHSA-q5w2-57qp-493f
GEM
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-126818
- https://rubygems.org/gems/mongoid/versions/9.0.13
- https://github.com/mongodb/mongoid/releases/tag/v9.0.13
- https://github.com/mongodb/mongoid/pull/6213
- https://github.com/mongodb/mongoid/pull/6212
- https://github.com/mongodb/mongoid/pull/6211
- https://github.com/mongodb/mongoid/commit/d1c72108d6b2dc1a1e0a40267aa73bda61aed0ed
- https://jira.mongodb.org/browse/MONGOID-6037
- https://github.com/advisories/GHSA-q5w2-57qp-493f
