HTTP Header Injection Affecting org.springframework.hateoas:spring-hateoas package, versions [,1.5.5)[2.0.0,2.0.5)[2.1.0,2.1.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.31% (54th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKHATEOAS-5777682
  • published16 Jul 2023
  • disclosed16 Jul 2023
  • creditHans Hosea Schaefer

Introduced: 16 Jul 2023

CVE-2023-34036  (opens in a new tab)
CWE-644  (opens in a new tab)

How to fix?

Upgrade org.springframework.hateoas:spring-hateoas to version 1.5.5, 2.0.5, 2.1.1 or higher.

Overview

Affected versions of this package are vulnerable to HTTP Header Injection via the handling of untrusted (X-)Forwarded headers. An attacker can manipulate hypermedia-based responses by injecting malicious content into these headers. This could lead to unauthorized access or misleading information being displayed to the user, compromising the application's data integrity and confidentiality. This is only exploitable if the application uses Spring WebFlux and Spring HATEOAS to generate links in hypermedia-based responses and does not have a mechanism to guard against clients submitting (X-)Forwarded headers.

CVSS Base Scores

version 3.1