CVE-2025-41235 — spring-cloud-gateway-serv…
HIGHCVE-2025-41235 is a high-severity (CVSS 8.6) CWE-444 vulnerability in org.springframework.cloud:spring-cloud-gateway-server. A fix is available for org.springframework.cloud:spring-cloud-gateway-server — see the affected versions and patch details below.
Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2025-41235.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server☕org.springframework.cloud:spring-cloud-gateway-server-mvcReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.2.0&&< 4.2.3 | 4.2.3org.springframework.cloud:spring-cloud-gateway-server:4.2.3 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.1.0&&< 4.1.8 | 4.1.8org.springframework.cloud:spring-cloud-gateway-server:4.1.8 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | ≥ 4.0.0 | No fix |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server | all versions | 3.1.10org.springframework.cloud:spring-cloud-gateway-server:3.1.10 |
| ☕Maven | org.springframework.cloud:spring-cloud-gateway-server-mvc | ≥ 4.1.7&&< 4.2.3 | 4.2.3org.springframework.cloud:spring-cloud-gateway-server-mvc:4.2.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.springframework.cloud:spring-cloud-gateway-server, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.springframework.cloud:spring-cloud-gateway-server to 4.2.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2025-41235 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2025-41235 in your dependencies?
Find it across Maven, including transitive dependencies.