CVE-2026-59342: Spring Data MongoDB String query logic injection via function operator bind parameter
Vulnerability summary
CVE-2026-59342 is a medium (CVSS 6.5) vulnerability in spring spring data mongodb. EPSS estimates a 0.55% chance of exploitation in the next 30 days, higher than 47.5% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
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 metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L
EPSS trend
Probability
0.55%
Chance of exploitation in the next 30 days
Percentile
48%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Spring1 product
- 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
1 vendor · 1 product