CVE-2026-59342
Received
Received - Intake
Spring Data MongoDB JavaScript Injection via Unsanitized String Parameters
Vulnerability report for CVE-2026-59342, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.
Publication date: 2026-12-02
Last updated on: 2026-12-02
Assigner: VMware
Description
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 , ...)
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| vmware | spring_data_mongodb | * |
| spring | data_mongodb | From 3.4.21 (inc) to 5.1.3 (exc) |
| spring | data_mongodb | From 4.4.0 (inc) to 4.5.15 (exc) |
| spring | data_mongodb | From 5.0.0 (inc) to 5.1.3 (exc) |
| spring | data_mongodb | From 5.1.0 (inc) to 5.1.3 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |