CVE-2026-59377: Spring Data REST allows POST requests on association resources although save(…) is not exported

Published Dec 2, 2026
·
Updated

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.

Affected Software

1 affected component
VMware Spring Data REST

Event History

Dec 2, 2026
CVE Published
via MITRE·07:10 AM
Data Sourced
via MITRE·07:10 AM
DescriptionSeverity

Frequently Asked Questions

1

Which applications are exposed to this issue?

An application is vulnerable when an exported REST repository does not export save(…), the domain type has a writable collection-like association, and the association target type is also exported through a repository. The attacker must also be able to reach the Spring Data REST endpoints.

2

Does this require an unauthenticated attacker?

The attacker needs network access to the relevant Spring Data REST endpoint. Whether authentication is required depends on the application's endpoint access configuration; the provided information does not establish that anonymous access is necessary.

3

What association types can be modified?

The affected association must be writable and collection-like, such as an association exposed through a resource path like /orders/42/items. The referenced target resources must be available through an exported repository.

4

What request enables the unauthorized change?

An attacker can send a POST request to the collection-like association resource with a text/uri-list body identifying resources to add. Spring Data REST persists the new association links by invoking save(…) on the parent aggregate.

5

Are other association write methods affected in the same way?

When save(…) is excluded from export, PUT, PATCH, and DELETE on the aggregate's association resources are withheld. The described bypass is specific to POST on collection-like association resources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203