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)
| Artifact | Affected versions | Fixed 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
55% of the dependent artifacts (831) still pull an affected version in their latest release.
| Depth | Dependent 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
- io.springfox » springfox-swagger21,926 usages
- io.springfox » springfox-swagger-ui1,418 usages
- org.springframework.cloud » spring-cloud-starter-openfeign1,389 usages
- org.springframework.cloud » spring-cloud-commons1,205 usages
- org.springframework.cloud » spring-cloud-starter-config978 usages
- org.springframework.cloud » spring-cloud-starter-netflix-eureka-client684 usages
- org.springframework.cloud » spring-cloud-starter-sleuth528 usages
- org.springframework.cloud » spring-cloud-starter-loadbalancer434 usages
- org.springframework.boot » spring-boot-starter-data-rest350 usages
- org.springframework.cloud » spring-cloud-starter-gateway325 usages
- org.springframework.cloud » spring-cloud-starter282 usages
- org.springframework.boot » spring-boot-starter-hateoas273 usages
- org.springframework.cloud » spring-cloud-sleuth-zipkin233 usages
- org.springframework.cloud » spring-cloud-bus232 usages
- org.springframework.cloud » spring-cloud-config-client217 usages
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.
