CVE-2026-59342: Spring Data MongoDB String query logic injection via function operator bind parameter
Affects Spring Data MongoDBSource CVE Database V5
Not known to be exploited · CVSS 6.5 Medium · fixed in 5.1.3 : update Spring Data MongoDB when convenient.
Data as of 2 Dec 2026, 08:16 UTC
Thin evidence
One scorer or none| CNA (vmware) | CVSS 3.1 | 6.5 |
|---|
- Patch
- Available – fixed in 5.1.3, 5.1.2.1, 5.0.9 +4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2 Dec 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
| SpringSpring Data MongoDB | Affected
| Fixed in
|
AI-suggested
Upgrade Spring Data MongoDB to one of the fixed versions: 5.1.3, 5.1.2.1, 5.0.9, 5.0.8.1, 4.5.15, 4.4.17, or 3.4.22. Avoid enabling MongoDB server-side JavaScript functions if not required. Ensure that input parameters used in repository query methods are properly sanitized before use.
Description
CVE-2026-59342 is a vulnerability in Spring Data MongoDB where the parameter binding mechanism for JSON-based queries and aggregations does not properly escape string arguments inside quoted string literals. This flaw can lead to logic injection when MongoDB server-side JavaScript functions are enabled, and untrusted input is used without sanitization in repository query methods annotated with query templates that use placeholders inside script expressions.