HIGH 7.5

CVE-2026-41007

Spring HATEOAS heap exhaustion through unbounded internal caching

Description

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

Affected versions: Spring HATEOAS 1.5.0 through 1.5.6; 2.3.0 through 2.3.4; 2.4.0 through 2.4.1; 2.5.0 through 2.5.2; 3.0.0 through 3.0.3.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.hateoas » spring-hateoas
<= 1.5.6>= 2.3.0, <= 2.3.4>= 2.4.0, <= 2.4.1>= 2.5.0, < 2.5.3>= 3.0.0, < 3.0.4
2.5.3, 3.0.4

Blast radius

1affected artifacts
116affected versions
1,736dependent artifacts (est.)
68,041dependent versions

64% of the dependent artifacts (1,127) still pull an affected version in their latest release.

DepthDependent versions
Direct
5,220
2 hops
12,191
3 hops
14,005
4 hops
12,809
5 hops
21,404
6 hops
2,412

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.