CVE-2026-123886

Spring Data Elasticsearch SpEL Expression Injection through String-based Query Method Arguments

Published Nov 23, 2026 CVSS 3.1 · 8.8 High EPSS n/a KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
References
History
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

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

Subscriptions

No data.

Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Nov 23, 2026, 10:12 AM
Reserved
Nov 6, 2026, 5:05 PM

No data.