Security mailing lists by PureSourceCode

CVE-2026-59377

MEDIUM 6.5CVSS 3.1

Spring Data REST allows POST requests on association resources although save(…) is not exported

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.

Published
2 Dec 2026
Last modified
2 Dec 2026
Assigned by
security@vmware.com
NVD status
Awaiting Analysis
Sources
NVDJSONCVE ListJSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@vmware.com (Secondary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
CVE List vmware CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
CVE List Spring Spring Data REST >= 5.1.0, < 5.1.2.1; >= 5.0.0, < 5.0.8.1; >= 4.5.0, < 4.5.15; >= 4.0.0, < 4.4.17; < 3.7.22; >= 5.1.0, < 5.1.3; >= 5.0.0, < 5.0.9 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.7.22, 5.1.3, 5.0.9

References

History

  • 2 Dec 2026 19:36 UTC · NVD: status Received → Awaiting Analysis
  • 2 Dec 2026 08:19 UTC · NVD: first stored (published 2 Dec 2026)
  • 2 Dec 2026 07:42 UTC · CVE List: first stored (published 2 Dec 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.