String query logic injection in Spring Data MongoDB
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- High · None · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA.
Summary
Spring Data MongoDB versions before 3.4.22, from 4.4.0 before 4.4.17, from 4.5.0 before 4.5.15, from 5.0.0 before 5.0.9 and from 5.1.0 before 5.1.3 are affected. The parameter binding for JSON-based queries does not escape String values placed inside quoted string literals, so attacker-controlled input can change query logic. A remote unauthenticated attacker can exploit this when MongoDB server-side JavaScript is enabled and the application passes untrusted String input to a repository method whose @Query or @Aggregation uses a placeholder inside a script expression such as $where. The attacker can access data they should not see.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
Description from the CNA
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 , ...)
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| VMware | Spring Data MongoDB | 5.1.0 to before 5.1.2.1; 5.0.0 to before 5.0.8.1; 4.5.0 to before 4.5.15; 4.4.0 to before 4.4.17; before 3.4.22; 5.1.0 to before 5.1.3; 5.0.0 to before 5.0.9 | 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9 | Patch available | CNA |
- Spring Data MongoDB VendorVMware Affected 5.1.0 to before 5.1.2.1; 5.0.0 to before 5.0.8.1; 4.5.0 to before 4.5.15; 4.4.0 to before 4.4.17; before 3.4.22; 5.1.0 to before 5.1.3; 5.0.0 to before 5.0.9 Fixed in 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9 Patch available CNA
Remediation
Upgrade Spring Data MongoDB to 3.4.22, 4.4.17, 4.5.15, 5.0.8.1, 5.0.9, 5.1.2.1 or 5.1.3, matching the release line in use.
Written with Claude Haiku 5.5 from the sources below · 2026-12-02
- Fix · CNA Spring Data MongoDB (Spring) Fixed in 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.4.22, 5.1.3, 5.0.9
Timeline
- 2026-12-02 Threatist record created from CVE-2026-59342
- 2026-12-02 Alias added: GHSA-v3m3-42wv-v9hm
References
More VMware vulnerabilities
- TI-2026-94633 Authentication bypass in VMware vCenter Directory Service KEVCVSS 3.1CRITICAL 9.8
- TI-2026-42442 Directory traversal in VMware vCenter Syslog server KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26040 VMware vCenter Server privilege escalation to root via network packet KEVCVSS 3.1CRITICAL 9.8
- TI-2024-26039 Heap overflow in VMware vCenter Server lets attackers run code KEVCVSS 3.1CRITICAL 9.8
- TI-2024-24610 Heap overflow in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
- TI-2023-16914 Out-of-bounds write in VMware vCenter Server DCERPC implementation KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-59342 · CVE Program
- CVE-2026-59342 · NVD
- GHSA-v3m3-42wv-v9hm · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences