CVE-2026-59342
Spring Data MongoDB String query logic injection via function operator bind parameter
- Severity
- medium CVSS 6.5 (v3.1)
- Affects
- Spring Data MongoDB · Spring
- Published
- 2 December 2026 by vmware
Spring Data MongoDB's parameter binding mechanism for JSON-based query and aggregation using
placeholder syntax did not contextually escape bound String argument values when those placeholders appeared inside a quoted string literal.
The application is vulnerable if all of the following are true:
MongoDB server-side JavaScript functions are enabled.
The application accepts input parameters from untrusted sources and uses them without prior sanitization as repository query method argument of type String.
The repository method is annotated with an MQL query template (e.g. @Query , @Aggregation ) that uses a value placeholder inside a script expression (e.g. $accumulator , $function , $where , ...)
Our coverage
We have not written about this one. Know why it matters? Send a tip.