MODERATE 5.3

CVE-2023-34036

Spring HATEOAS vulnerable to Improper Neutralization of HTTP Headers for Scripting Syntax

Description

Reactive web applications that use Spring HATEOAS to produce hypermedia-based responses might be exposed to malicious forwarded headers if they are not behind a trusted proxy that ensures correctness of such headers, or if they don't have anything else in place to handle (and possibly discard) forwarded headers either in WebFlux or at the level of the underlying HTTP server.

For the application to be affected, it needs to satisfy the following requirements:

  • It needs to use the reactive web stack (Spring WebFlux) and Spring HATEOAS to create links in hypermedia-based responses.
  • The application infrastructure does not guard against clients submitting (X-)Forwarded… headers.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.springframework.hateoas » spring-hateoas
< 1.5.5>= 2.0.0, < 2.0.5>= 2.1.0, < 2.1.1
1.5.5, 2.0.5, 2.1.1

Blast radius

1affected artifacts
106affected versions
1,499dependent artifacts (est.)
61,871dependent versions

55% of the dependent artifacts (831) still pull an affected version in their latest release.

DepthDependent versions
Direct
4,671
2 hops
10,415
3 hops
12,587
4 hops
11,270
5 hops
20,599
6 hops
2,329

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.