Skip to content

Spring Data REST

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?

ProductAffected 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.95.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

FactorValueEvidence×
ImpactMajor data tamperingWrites or changes important data without gaining executionFrom the CVSS vector0.70
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.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
  1. Prerequisites multiplied together0.600
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.7 × prerequisites 0.6 × threat 0.853.570
  4. Rounded to one decimal between 0.1 and 103.6

How the score works

Exploitation and evidence timeline

  1. 2 Dec 2026 Published
  2. 2 Dec 2026 Risk 3.6 (cvss fallback)

Weakness

No weakness type given.

References

Get alerts for Spring Data REST

Free email or text alerts when a vulnerability in Spring Data REST reaches risk 8 or higher. Nothing else.