CVE-2026-59342

Spring Data MongoDB String query logic injection via function operator bind parameter

Published Dec 2, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
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 , ...)

Analysis

No analysis available yet

Remediation

No remediation available yet

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Spring
Spring spring Data Mongodb
Vendors & Products Spring
Spring spring Data Mongodb
Type Values Removed Values Added
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 , ...)
Title Spring Data MongoDB String query logic injection via function operator bind parameter
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:L'}

Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Dec 2, 2026, 7:09 AM
Reserved
Jul 4, 2026, 6:14 PM
Status
Awaiting Analysis
Published
Dec 2, 2026, 8:17 AM
Modified
Dec 2, 2026, 7:26 PM