Description
Spring Data REST is vulnerable to SpEL expression injection through map-typed properties when processing JSON Patch (application/json-patch+json) requests. When a persistent entity exposes a Map-typed property, the JSON Pointer path segment used as the map key is embedded directly into a SpEL expression without sanitization or validation.

Affected versions:
Spring Data REST 3.7.0 through 3.7.19; 4.3.0 through 4.3.16; 4.4.0 through 4.4.14; 4.5.0 through 4.5.11; 5.0.0 through 5.0.5.
Published: 2026-06-09
Score: 8.1 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Spring Data REST processes JSON Patch requests that may contain map-typed properties. When a map key is used, the key is incorporated unvalidated into a SpEL expression. This vulnerability is a classic Expression Language Injection (CWE-917) that can allow an attacker to execute arbitrary server-side code or modify database records. The exploit requires crafting a JSON Patch payload with a map key that contains a malicious SpEL expression and sending it to an exposed REST endpoint. As the CVSS score is 8.1 and the EPSS score is not available, the exploitation likelihood remains uncertain, but the potential impact is high. This vulnerability is not listed in the CISA KEV catalog.

Affected Systems

Spring Data REST 3.7.0 through 3.7.19, 4.3.0 through 4.3.16, 4.4.0 through 4.4.14, 4.5.0 through 4.5.11, and 5.0.0 through 5.0.5 are affected. The vendor responsible is Spring: Spring Data REST. Any application that includes these library versions and exposes endpoints that accept JSON Patch requests is at risk.

Risk and Exploitability

The vulnerability stems from unsanitized embedding of a map key into a SpEL expression. An attacker who can control the JSON Patch payload may trigger arbitrary code execution or unauthorized data manipulation. The high CVSS score indicates significant severity, but the absence of an EPSS metric means exploitation probabilities are unclear. The exploit path is via application/json-patch+json requests, so any publicly exposed endpoint that accepts such traffic is a potential entry point. This issue is not listed in the CISA KEV catalog, suggesting that no public exploit has been observed, but the impact warrants immediate attention.

Generated by OpenCVE AI on June 10, 2026 at 01:51 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Spring Data REST to the latest non‑affected version (for example, 3.7.20 or later, 4.3.17 or later, 4.4.15 or later, 4.5.12 or later, and 5.0.6 or later).
  • Restrict access to the JSON Patch endpoint to trusted users or applications, or remove the endpoint entirely if it is not required.
  • Implement server‑side validation or sanitization of map keys in incoming JSON Patch payloads to prevent unsanitized SpEL expression execution.

Generated by OpenCVE AI on June 10, 2026 at 01:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

References
History

Wed, 10 Jun 2026 00:00:00 +0000

Type Values Removed Values Added
Description Spring Data REST is vulnerable to SpEL expression injection through map-typed properties when processing JSON Patch (application/json-patch+json) requests. When a persistent entity exposes a Map-typed property, the JSON Pointer path segment used as the map key is embedded directly into a SpEL expression without sanitization or validation. Affected versions: Spring Data REST 3.7.0 through 3.7.19; 4.3.0 through 4.3.16; 4.4.0 through 4.4.14; 4.5.0 through 4.5.11; 5.0.0 through 5.0.5.
Title Spring Data REST SpEL Injection via Map Key in JSON Patch
Weaknesses CWE-917
References
Metrics cvssV3_1

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


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: vmware

Published:

Updated: 2026-06-09T23:49:17.014Z

Reserved: 2026-04-22T06:21:39.015Z

Link: CVE-2026-41729

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-06-10T00:16:52.367

Modified: 2026-06-10T00:16:52.367

Link: CVE-2026-41729

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-10T02:00:13Z

Weaknesses