# CVE-2026-123886: Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

- Priority: **Routine**
- Reason: Not severe (CVSS 8.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-11-23 · Modified: 2026-11-24
- Record: https://cvemate.com/vulnerability/CVE-2026-123886 · JSON: https://cvemate.com/vulnerability/CVE-2026-123886/json

## Description

```text
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.
```

## Signals

- CVSS: 8.8 high (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.33%, percentile 72.035%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- spring spring data elasticsearch: ≥ 6.1.0, \< 6.1.3 \| ≥ 6.0.0, \< 6.0.9

## References

- <https://spring.io/security/cve-2026-123886>

---

Data as of 2026-12-05T04:05:31.680Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
