Improperly Controlled Modification of Dynamically-Determined Object Attributes Affecting org.springframework.hateoas:spring-hateoas package, versions [,3.0.7)[3.1.0-M1,3.1.4)


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 Learn

Learn about Improperly Controlled Modification of Dynamically-Determined Object Attributes vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKHATEOAS-22731243
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditYu Bao

Introduced: 19 Nov 2026

NewCVE-2026-59376  (opens in a new tab)
CWE-915  (opens in a new tab)

How to fix?

Upgrade org.springframework.hateoas:spring-hateoas to version 3.0.7, 3.1.4 or higher.

Overview

Affected versions of this package are vulnerable to Improperly Controlled Modification of Dynamically-Determined Object Attributes in the PropertyUtils class, whose reflection-based binder for Collection+JSON and UBER request bodies resolves writable setters while honoring only @JsonIgnore, ignoring @JsonProperty(access = READ_ONLY). A user can modify a property the application intended to be read-only by sending a Collection+JSON or UBER payload whose field names that property, when the body is bound directly onto a domain type with a read-only property that has a setter. HAL and HAL-FORMS are not affected, the same payload sent as application/json is handled correctly, and applications binding to input DTOs without read-only properties are not affected.

Workaround

This vulnerability can be avoided by removing application/vnd.collection+json and application/vnd.uber+json from @EnableHypermediaSupport, or by binding request bodies to a dedicated input DTO instead of the domain type.

CVSS Base Scores

version 4.0
version 3.1