CVE-2026-141347
Remote code execution via unvalidated discriminator-driven class loading in POJO decoding
- Severity
- medium CVSS 6.0 (v4.0)
- Affects
- Jave Driver · MongoDB
- Weakness
- CWE-470: Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')
- Published
- 3 December 2026 by mongodb
A deserialization flaw in the BSON object-mapping component of the MongoDB Java Driver allows a type-name value carried inside a document to select which Java class the embedding application loads and builds. A party able to place a document into a collection the application later reads can cause the application to load, initialize and populate an arbitrary class that is present on its classpath, with field values taken from the same document. This may result in unintended changes to application state and in failures when the affected records are read.
Our coverage
We have not written about this one. Know why it matters? Send a tip.