CVE-2026-59342
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 , ...)
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| spring | spring_data_mongodb | {"startIncluding":"5.1.0","endExcluding":"5.1.2.1"} | 5.1.2.1 |
| spring | spring_data_mongodb | {"startIncluding":"5.0.0","endExcluding":"5.0.8.1"} | 5.0.8.1 |
| spring | spring_data_mongodb | {"startIncluding":"4.5.0","endExcluding":"4.5.15"} | 4.5.15 |
| spring | spring_data_mongodb | {"startIncluding":"4.4.0","endExcluding":"4.4.17"} | 4.4.17 |
| spring | spring_data_mongodb | {"endExcluding":"3.4.22"} | 3.4.22 |
| spring | spring_data_mongodb | {"startIncluding":"5.1.0","endExcluding":"5.1.3"} | 5.1.3 |
| spring | spring_data_mongodb | {"startIncluding":"5.0.0","endExcluding":"5.0.9"} | 5.0.9 |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.