CVE-2026-59377
CVE-2026-59377CVE-2026-59377
Description
Spring Data REST can be configured to make an aggregate read-only by excluding the repository's save(…) method from export, for example via @RestResource(exported = false) .
In that case, the PUT , PATCH and DELETE methods on the aggregate's association resources are correctly withheld.
However, the POST method on collection-like association resources is not subject to the same check.
An attacker can send a POST request with a text/uri-list body to such an association resource, for example /orders/42/items .
Spring Data REST adds the referenced resources to the association and invokes the repository's save(…) method for the parent aggregate.
This persists the new association links despite the read-only configuration.
The application is vulnerable if all of the following are true:
A repository that is exported over REST excludes its save(…) method from export, either explicitly or by disabling the export of repository methods by default without re-exporting save(…) .
The dom
Scoring
| CVSS | 6.5 () |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| Last modified | 2026-12-02 |