Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Spring | Spring Data Elasticsearch | affected |
|
No data.
No data.
No data available yet.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Link | Providers |
|---|---|
| https://spring.io/security/cve-2026-123886 |
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | Spring Data Elasticsearch replaces positional placeholders in string-based @Query methods with the method arguments before it evaluates SpEL expressions in the resulting query string. As a result, an argument that contains a SpEL expression is evaluated as part of the query, even if the declared query does not use SpEL. An application is affected if it passes untrusted input as an argument to a repository query method that declares a @Query with positional placeholders. In that case, a remote attacker can execute arbitrary code in the application, and repeated requests can exhaust memory through the unbounded expression cache. | |
| Title | Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments | |
| References |
| |
| Metrics |
cvssV3_1
|
No data.
No weakness.
No data.
No data.
No data.
No data.