CVE-2026-41007: Spring HATEOAS heap exhaustion through unbounded internal caching
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.
Published Jun 9, 2026 · Updated Jul 29, 2026
Affected packages
org.springframework.hateoas:spring-hateoas
- Ecosystem
- Maven
- Affected
- >= 3.0.0, <= 3.0.3
- Fixed in
- 3.0.4
- Check
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas
org.springframework.hateoas:spring-hateoas
- Ecosystem
- Maven
- Affected
- >= 2.5.0, <= 2.5.2
- Fixed in
- 2.5.3
- Check
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas
org.springframework.hateoas:spring-hateoas
- Ecosystem
- Maven
- Affected
- >= 2.3.0, <= 2.3.4
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas
org.springframework.hateoas:spring-hateoas
- Ecosystem
- Maven
- Affected
- <= 1.5.6
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas
org.springframework.hateoas:spring-hateoas
- Ecosystem
- Maven
- Affected
- >= 2.4.0, <= 2.4.1
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework.hateoas:spring-hateoas
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-41007
- https://spring.io/security/cve-2026-41007
- https://github.com/spring-projects/spring-hateoas/issues/2514
- https://github.com/spring-projects/spring-hateoas/issues/2518
- https://github.com/spring-projects/spring-hateoas/issues/2519
- https://github.com/spring-projects/spring-hateoas/commit/668fd3282e1c7ffc817499b4b3d85d3aa21c0c2e
- https://github.com/spring-projects/spring-hateoas/commit/6b6622c92fd06d028a1d4522addf0e214c079f29
- https://github.com/spring-projects/spring-hateoas/commit/b0a408f4b372b5287e23ec00260808958953496c
- https://github.com/spring-projects/spring-hateoas/releases/tag/2.5.3
- https://github.com/spring-projects/spring-hateoas/releases/tag/3.0.4
- https://github.com/advisories/GHSA-439x-6767-44cv
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
