# CVE-2026-59342: Spring Data MongoDB String query logic injection via function operator bind parameter

- Priority: **Routine**
- Reason: Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-12-02 · Modified: 2026-12-02
- Record: https://cvemate.com/vulnerability/CVE-2026-59342 · JSON: https://cvemate.com/vulnerability/CVE-2026-59342/json

## Description

```text
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 , ...)
```

## Signals

- CVSS: 6.5 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
- EPSS: 0.552%, percentile 47.594%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring spring data mongodb: ≥ 5.1.0, \< 5.1.2.1 \| ≥ 5.0.0, \< 5.0.8.1 \| ≥ 4.5.0, \< 4.5.15 \| ≥ 4.4.0, \< 4.4.17 \| \< 3.4.22 \| ≥ 5.1.0, \< 5.1.3 \| ≥ 5.0.0, \< 5.0.9

## References

- <https://spring.io/security/cve-2026-59342>
- <https://nvd.nist.gov/vuln-metrics/cvss/v3-calculator?vector=AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L&version=3.1>

---

Data as of 2026-12-05T04:05:03.378Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
