Spring Data REST allows POST requests on association resources although save(…) is not exported
CVE-2026-59377Published 2 Dec 2026, 07:10 UTC
Real-world risk
3.6/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
6.5
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from vmware)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Spring Data RESTNiche | >= 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 |
What to do
Update to a fixed version: 5.1.2.1, 5.0.8.1, 4.5.15, 4.4.17, 3.7.22, 5.1.3, 5.0.9.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data tamperingWrites or changes important data without gaining execution | From the CVSS vector | 0.70 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 0.60 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.5% chance of exploitation in 30 days (percentile 44), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.600
- Threat T1: Nothing known0.850
- 10 × impact 0.7 × prerequisites 0.6 × threat 0.853.570
- Rounded to one decimal between 0.1 and 103.6
Exploitation and evidence timeline
- 2 Dec 2026 Published
- 2 Dec 2026 Risk 3.6 (cvss fallback)
Weakness
No weakness type given.