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 , ...)
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 , ...)
Project Subscriptions
No data.
Advisories
No advisories yet.
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Wed, 02 Dec 2026 07:30:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| Description | 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 , ...) | |
| Title | Spring Data MongoDB String query logic injection via function operator bind parameter | |
| References |
| |
| Metrics |
cvssV3_1
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: vmware
Published:
Updated: 2026-12-02T07:09:23.482Z
Reserved: 2026-07-04T18:14:34.672Z
Link: CVE-2026-59342
No data.
Status : Received
Published: 2026-12-02T08:17:39.537
Modified: 2026-12-02T08:17:39.537
Link: CVE-2026-59342
No data.
OpenCVE Enrichment
No data.
Weaknesses
No weakness.