Vulnerabilities in pkg:maven/org.springframework.hateoas/spring-hateoas

PACKAGE
Advisory Identifier: GHSA-439x-6767-44cv
Advisory Summary

CVE-2026-41007 is a HIGH (CVSS 7.5) spring hateoas heap exhaustion through vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling) affecting Spring Framework libraries in the Maven ecosystem. The issue involves spring hateoas heap exhaustion through unbounded internal caching. Remediation is available by upgrading affected packages to version 3.0.4, 2.5.3.

3 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.springframework.hateoas/spring-hateoas

3 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.springframework.hateoas/spring-hateoas. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-439x-6767-44cv CVE-2026-41007 HIGH Spring HATEOAS heap exhaustion through unbounded internal caching
GHSA-7fxc-486f-32q9 CVE-2026-41006 HIGH Spring HATEOAS Collection+JSON/UBER deserializers do not honor Jackson configuration
GHSA-7m5c-fgwf-mwph CVE-2023-34036 MODERATE Spring HATEOAS vulnerable to Improper Neutralization of HTTP Headers for Scripting Syntax

CVE-2026-41007 at a Glance

CVE Identifier CVE-2026-41007
GHSA Identifier GHSA-439x-6767-44cv
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-770: Allocation of Resources Without Limits or Throttling
Affected Product Spring Framework
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2026-41007

To remediate this vulnerability, upgrade all affected Spring Framework dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.springframework.hateoas:spring-hateoas fixed: 3.0.4
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>3.0.4</version>
</dependency>
org.springframework.hateoas:spring-hateoas fixed: 2.5.3
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>2.5.3</version>
</dependency>
org.springframework.hateoas:spring-hateoas fixed: Latest secure release
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework.hateoas:spring-hateoas fixed: Latest secure release
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>Latest secure release</version>
</dependency>
org.springframework.hateoas:spring-hateoas fixed: Latest secure release
<dependency>
    <groupId>org.springframework.hateoas</groupId>
    <artifactId>spring-hateoas</artifactId>
    <version>Latest secure release</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.springframework.hateoas

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-41007, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.springframework.hateoas

Analyze the terminal output to locate any version of Spring Framework in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 3.0.4), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.springframework.hateoas command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-770: Allocation of Resources Without Limits or Throttling, where the product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated. In Spring Framework, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-41007 Affected Spring Framework Versions

5 component(s)
Fixed Versions:
3.0.42.5.3
Product / Package Ecosystem Affected Versions Fixed Version
org.springframework.hateoas:spring-hateoas
Maven
≥ 3.0.0
< 3.0.4
3.0.4
org.springframework.hateoas:spring-hateoas
Maven
≥ 2.5.0
< 2.5.3
2.5.3
org.springframework.hateoas:spring-hateoas
Maven
≥ 2.3.0
≤ 2.3.4
org.springframework.hateoas:spring-hateoas
Maven
≤ 1.5.6
org.springframework.hateoas:spring-hateoas
Maven
≥ 2.4.0
≤ 2.4.1

References

Frequently Asked Questions

What is CVE-2026-41007?
CVE-2026-41007 is a security vulnerability in Spring Framework involving Spring HATEOAS heap exhaustion through unbounded internal caching under CWE-770: Allocation of Resources Without Limits or Throttling.
Which Spring Framework versions are affected?
Affected versions include releases prior to 3.0.4, 2.5.3 across affected packages: org.springframework.hateoas:spring-hateoas.
What version fixes CVE-2026-41007?
Upgrading to 3.0.4, 2.5.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is spring-hateoas affected?
Yes, org.springframework.hateoas:spring-hateoas is affected in releases prior to 3.0.4, 2.5.3, Latest secure release. Upgrade your dependency to 3.0.4, 2.5.3, Latest secure release or later.
What is the CVSS score of CVE-2026-41007?
CVE-2026-41007 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-41007?
CVE-2026-41007 is classified under CWE-770: Allocation of Resources Without Limits or Throttling (The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.).
How can I check Maven dependencies for CVE-2026-41007?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.springframework.hateoas'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-439x-6767-44cv",
  "modified" : "2026-07-29T18:06:03Z",
  "published" : "2026-06-09T06:31:57Z",
  "aliases" : [ "CVE-2026-41007" ],
  "summary" : "Spring HATEOAS heap exhaustion through unbounded internal caching",
  "details" : "Spring HATEOAS maintains an unbounded static cache of StringLinkRelation instances keyed on attacker-supplied strings.\n\nAffected versions:\nSpring 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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.hateoas:spring-hateoas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.4"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 3.0.3"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.hateoas:spring-hateoas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.5.0"
      }, {
        "fixed" : "2.5.3"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 2.5.2"
    }
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.hateoas:spring-hateoas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.3.0"
      }, {
        "last_affected" : "2.3.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.hateoas:spring-hateoas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "1.5.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.springframework.hateoas:spring-hateoas"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.4.0"
      }, {
        "last_affected" : "2.4.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41007"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/issues/2514"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/issues/2518"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/issues/2519"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/commit/668fd3282e1c7ffc817499b4b3d85d3aa21c0c2e"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/commit/6b6622c92fd06d028a1d4522addf0e214c079f29"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/commit/b0a408f4b372b5287e23ec00260808958953496c"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/spring-projects/spring-hateoas"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/releases/tag/2.5.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/spring-projects/spring-hateoas/releases/tag/3.0.4"
  }, {
    "type" : "WEB",
    "url" : "https://spring.io/security/cve-2026-41007"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-770" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-29T18:06:02Z",
    "nvd_published_at" : "2026-06-09T05:16:35Z"
  }
}