CVE-2026-41729

Spring Data REST SpEL Injection via Map Key in JSON Patch

Published Jun 9, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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

Source ID Title
Github GHSA Github GHSA GHSA-j388-8rm5-p97f Spring Data REST is vulnerable to SpEL expression injection through map-typed properties when processing JSON Patch requests
References
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Data Rest
Vendors & Products Spring
Spring spring Data Rest
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'}

Weaknesses
  • CWE-917

    Improper Neutralization of Special Elements used in an Expression Language Statement ('Expression Language Injection')

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jun 11, 2026, 3:55 AM
Reserved
Apr 22, 2026, 6:21 AM
Status
Analyzed
Published
Jun 10, 2026, 12:16 AM
Modified
Jul 23, 2026, 9:10 AM