Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreSpring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies in certain configuration scenarios. This affects both the WebMVC and WebFlux Gateway Servers.
Spring Cloud Gateway:
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 3.1.x | 3.1.13 | Enterprise Support Only |
| 4.1.x | 4.2.9 | Enterprise Support Only |
| 4.2.x | 4.2.9 | Enterprise Support Only |
| 4.3.x | 4.3.4.1, 4.3.5 | OSS |
| 5.0.x | 5.0.1.1, 5.0.2 | OSS |
As part of this fix, the Spring Cloud Gateway Server WebFlux NettyServerCustomizer has been disabled by default. If you require this to be enabled, please set spring.cloud.gateway.server.webflux.httpserver.customizer-enabled=true for versions 5.0.x or 4.3.x if you have migrated to the new properties namespace, or spring.cloud.gateway.httpserver.customizer-enabled=true for 4.3.x if you have not migrated to the new properties namespace and for 4.2.x and 3.1.x.
The issue was identified and responsibly reported by samarthd.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy