CVE-2026-59377: Spring Data REST allows POST requests on association resources although save(…) is not exported
Vulnerability summary
CVE-2026-59377 is a medium (CVSS 6.5) vulnerability in spring spring data rest. EPSS estimates a 0.49% chance of exploitation in the next 30 days, higher than 43.6% of scored vulnerabilities.
Not severe (CVSS 6.5, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 02-12-2026PublishedVulnerability first disclosed.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST6.5MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS trend
Probability
0.49%
Chance of exploitation in the next 30 days
Percentile
44%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Spring1 product
- 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
1 vendor · 1 product