CVE-2026-41007 Spring HATEOAS heap exhaustion through unbounded internal caching

High 7.5 Published Updated

Attackers can cause heap exhaustion and denial of service by exploiting unbounded caching in Spring HATEOAS.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-41007?

CVE-2026-41007 is a high-severity denial of service vulnerability in Spring HATEOAS, published on 9 Jun 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-770

Which versions are affected by CVE-2026-41007?

10 open source packages ship an affected version, including org.springframework.hateoas:spring-hateoas. It affects 1 product.

PackageAffectedFixed in
org.springframework.hateoas:spring-hateoas MavenAll versions to 1.5.6None
org.springframework.hateoas:spring-hateoas MavenAll versions to 1.5.6None
org.springframework.hateoas:spring-hateoas MavenFrom 2.3.0 to 2.3.4None
org.springframework.hateoas:spring-hateoas MavenFrom 2.3.0 to 2.3.4None
org.springframework.hateoas:spring-hateoas MavenFrom 2.4.0 to 2.4.1None
org.springframework.hateoas:spring-hateoas MavenFrom 2.4.0 to 2.4.1None
4 more packages
org.springframework.hateoas:spring-hateoas MavenFrom 2.5.02.5.3
org.springframework.hateoas:spring-hateoas MavenFrom 2.5.02.5.3
org.springframework.hateoas:spring-hateoas MavenFrom 3.0.03.0.4
org.springframework.hateoas:spring-hateoas MavenFrom 3.0.03.0.4

Products include Vmware Spring Hateoas.

How do I fix CVE-2026-41007?

Upgrade org.springframework.hateoas:spring-hateoas to a fixed version for your release line: 2.5.3 or 3.0.4.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-41007 being exploited?

There is no known exploitation of CVE-2026-41007 in the wild and no public exploit code.

Sources

Also known as CLSA-2026-1786568979, CLSA-2026-1791959812, GHSA-439x-6767-44cv, ROOT-APP-MAVEN-CVE-2026-41007.

Is CVE-2026-41007 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free