Severity
Details
- CVSS score
- 8.1
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Overview
About vulnerability
SVG ImageDescription
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. An attacker who can issue PATCH requests against an affected endpoint can craft a map-key segment that breaks out of the intended indexer literal and evaluates an arbitrary SpEL sub-expression within the context of the aggregate root.
Both the read and write patch paths are affected.
Preconditions:
- The exposed aggregate or a nested embedded type reachable via the patch path declares a
Map-typed persistent property. - The attacker is able to issue
PATCHrequests withContent-Type: application/json-patch+jsonto the item resource (enabled by default; authentication requirements depend on the application’s security configuration).
SVG ImageAffected Spring Products and Versions
Spring Data REST:
- 3.7.0 - 3.7.19
- 4.3.0 - 4.3.16
- 4.4.0 - 4.4.14
- 4.5.0 - 4.5.11
- 5.0.0 - 5.0.5
Versions that are no longer supported are also affected.
SVG ImageMitigation
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 3.7.x | 3.7.20 | Commercial |
| 4.3.x | 4.3.17 | Commercial |
| 4.4.x | 4.4.15 | Commercial |
| 4.5.x | 4.5.12 | OSS |
| 5.0.x | 5.0.6 | OSS |
SVG ImageCredit
The issue was identified and responsibly reported by Daehyun Kang (@daehyuh) [email protected].
SVG ImageReferences
SVG ImageHistory
- 2026-06-09: Initial vulnerability report published.
Details
- Affected product:
- Spring
- Affected packages:
- Spring Data @ 3.7.18 (+77 more)
SVG ImageDescription
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. An attacker who can issue PATCH requests against an affected endpoint can craft a map-key segment that breaks out of the intended indexer literal and evaluates an arbitrary SpEL sub-expression within the context of the aggregate root.
Both the read and write patch paths are affected.
Preconditions:
- The exposed aggregate or a nested embedded type reachable via the patch path declares a
Map-typed persistent property. - The attacker is able to issue
PATCHrequests withContent-Type: application/json-patch+jsonto the item resource (enabled by default; authentication requirements depend on the application’s security configuration).
SVG ImageAffected Spring Products and Versions
Spring Data REST:
- 3.7.0 - 3.7.19
- 4.3.0 - 4.3.16
- 4.4.0 - 4.4.14
- 4.5.0 - 4.5.11
- 5.0.0 - 5.0.5
Versions that are no longer supported are also affected.
SVG ImageMitigation
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 3.7.x | 3.7.20 | Commercial |
| 4.3.x | 4.3.17 | Commercial |
| 4.4.x | 4.4.15 | Commercial |
| 4.5.x | 4.5.12 | OSS |
| 5.0.x | 5.0.6 | OSS |
SVG ImageCredit
The issue was identified and responsibly reported by Daehyun Kang (@daehyuh) [email protected].
SVG ImageReferences
SVG ImageHistory
- 2026-06-09: Initial vulnerability report published.