HIGH 8.1

CVE-2026-41729

Spring Data REST is vulnerable to SpEL expression injection through map-typed properties when processing JSON Patch requests

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.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.data » spring-data-rest-core
<= 3.7.19>= 4.3.0, <= 4.3.16>= 4.4.0, <= 4.4.14>= 4.5.0, < 4.5.12>= 5.0.0, < 5.0.6
4.5.12, 5.0.6

Blast radius

1affected artifacts
290affected versions
655dependent artifacts (est.)
37,403dependent versions

60% of the dependent artifacts (397) still pull an affected version in their latest release.

DepthDependent versions
Direct
427
2 hops
1,373
3 hops
10,905
4 hops
21,370
5 hops
2,882
6 hops
446

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.