CVE-2026-126817 Mongoid stores encrypted fields in plaintext when two models share a collection

Medium 6.0 Published Updated
Exploited in the wild
Not known
Fix
None listed

What is CVE-2026-126817?

CVE-2026-126817 is a medium-severity vulnerability in MongoDB Ruby Driver, published on 13 Nov 2026.

Official description

A flaw in the automatic client-side encryption schema generation of the Mongoid ODM may cause values that an application declared for encryption to be written and stored as cleartext when more than one model is mapped onto the same storage location. No error or warning is raised. A party holding an ordinary read-only database account, with no access to the encryption key material, may then obtain those values in clear form.

Weakness: CWE-312

Which versions are affected by CVE-2026-126817?

How do I fix CVE-2026-126817?

No fix has been published for CVE-2026-126817 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-126817 being exploited?

There is no known exploitation of CVE-2026-126817 in the wild and no public exploit code.

Sources

Also known as GHSA-jw2c-7599-4ghc.

Is CVE-2026-126817 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free