CVE-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 domain type declares a writable, collection-like association whose target type is exported through a repository as well. The attacker can reach the Spring Data REST endpoints. Whether that requires authentication depends on the application. On affected applications the integrity of aggregates intended to be read-only can be compromised.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| spring | spring_data_rest | {"startIncluding":"5.1.0","endExcluding":"5.1.2.1"} | 5.1.2.1 |
| spring | spring_data_rest | {"startIncluding":"5.0.0","endExcluding":"5.0.8.1"} | 5.0.8.1 |
| spring | spring_data_rest | {"startIncluding":"4.5.0","endExcluding":"4.5.15"} | 4.5.15 |
| spring | spring_data_rest | {"startIncluding":"4.0.0","endExcluding":"4.4.17"} | 4.4.17 |
| spring | spring_data_rest | {"endExcluding":"3.7.22"} | 3.7.22 |
| spring | spring_data_rest | {"startIncluding":"5.1.0","endExcluding":"5.1.3"} | 5.1.3 |
| spring | spring_data_rest | {"startIncluding":"5.0.0","endExcluding":"5.0.9"} | 5.0.9 |
References
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.