Intel

AIKIDO-2026-736033

spring-data-rest-core is vulnerable to Improper Access Control

Improper Access ControlCVE-2026-47850 Published 6 days ago

43

Medium Risk

This Affects:

JAVAspring-data-rest-core
0.0.1 - 5.0.6
Fixed in 5.0.7
5.1.0 - 5.1.0
Fixed in 5.1.1
Are you affected? Scan for Free

TL;DR

spring-data-rest-core does not preserve the persisted @Version property when merging an HTTP PUT into an immutable aggregate. Mutable types keep identifier and version from storage, but records, Kotlin data classes, and all-args @PersistenceCreator types return the request body and restore only @JsonIgnore properties. An authenticated client can therefore persist a client-supplied version and defeat optimistic locking. The patch restores version from storage for immutable PUT merges.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and a Spring Data REST repository exposes an immutable aggregate with a @Version property over HTTP PUT.

Background info

spring-data-rest-core is vulnerable to Improper Access Control in versions 0.0.1 - 5.0.6 and 5.1.0 - 5.1.0.

How to fix this

Upgrade the org.springframework.data:spring-data-rest-core library to the patch version.