CVE-2026-47825: Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies in certain situations

HIGH | JUNE 11, 2026 | CVE-2026-47825

Description

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

Affected Spring Products and Versions

Spring Cloud Gateway:

  • 3.1.x
  • 4.1.x
  • 4.2.x
  • 4.3.x
  • 5.0.x
  • Older, unsupported versions are also affected

Mitigation

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.

Credit

The issue was identified and responsibly reported by samarthd.

References

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Tanzu Spring offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all