Spring HATEOAS heap exhaustion through unbounded internal caching

HIGH | JUNE 08, 2026 | CVE-2026-41007

Description

Spring HATEOAS maintains an unbounded static cache of StringLinkRelation instances keyed on attacker-supplied strings.

Affected applications are those that deserialize attacker-supplied hypermedia, for example via a @RequestBody bound to a RepresentationModel, EntityModel, or CollectionModel, or by calling Links.parse() / Link.valueOf() on a client-supplied Link header.

Affected Spring Products and Versions

Spring HATEOAS:

  • 3.0.0 - 3.0.3
  • 2.5.0 - 2.5.2
  • 2.4.0 - 2.4.1
  • 2.3.0 - 2.3.4
  • 1.5.6 and earlier

Mitigation

Users of affected versions should upgrade to the corresponding fixed version.
Fix versionAvailability
3.0.4OSS
3.0.3.1Enterprise Support Only
2.5.3OSS
2.5.2.1Enterprise Support Only
2.4.2Enterprise Support Only
2.3.5Enterprise Support Only
1.5.7Enterprise Support Only

No further mitigation steps are necessary.

History

  • 2026-06-08: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all