Incorrect Authorization Affecting org.springframework.data:spring-data-rest-core package, versions [,5.0.9)[5.1.0-M1,5.1.3)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKDATA-22732226
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-59377  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade org.springframework.data:spring-data-rest-core to version 5.0.9, 5.1.3 or higher.

Overview

org.springframework.data:spring-data-rest-core is a Spring Data REST.

Affected versions of this package are vulnerable to Incorrect Authorization in the CrudMethodsSupportedHttpMethods class, which reports POST as supported for any writable collection-like association resource without checking that the repository exports save(…). A user can add entries to an association, persisting the parent aggregate, by sending a POST with a text/uri-list body to an association resource, even when save(…) is excluded from export. This requires an exported repository that withholds save(…) and a domain type with a writable collection-like association whose target is also exported.

Workaround

This vulnerability can be avoided by annotating the association property with @RestResource(exported = false), or by blocking POST to association resources at the web security layer.

CVSS Base Scores

version 4.0
version 3.1