Skip to main content

CVE-2025-41235 — Vulnerability in spring-cloud-gateway-server

HIGH

Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies

Published May 30, 2025Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.59%). Schedule for your next planned update.

Does your project use an affected org.springframework.cloud:spring-cloud-gateway-server version?

Paste your pom.xml to check it for CVE-2025-41235 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my pom.xml

Summary

Spring Cloud Gateway Server forwards the X-Forwarded-For and Forwarded headers from untrusted proxies.

Advisory Timeline

  • First published May 30, 2025 (545 days ago).
  • Last revised September 10, 2026 — 468 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 4.2.3 or later
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 4.1.8 or later
<!-- Update pom.xml dependency version to 4.1.8 for org.springframework.cloud:spring-cloud-gateway-server -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server-mvc to 4.2.3 or later
<!-- Update pom.xml dependency version to 4.2.3 for org.springframework.cloud:spring-cloud-gateway-server-mvc -->
Maven
Update org.springframework.cloud:spring-cloud-gateway-server to 3.1.10 or later
<!-- Update pom.xml dependency version to 3.1.10 for org.springframework.cloud:spring-cloud-gateway-server -->

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (5)

Affects 1 ecosystem: Maven (2).

PackageFixed In
org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.2.0, 4.2.1, 4.2.24.2.3
org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.1.0, 4.1.1, 4.1.2, 4.1.3 (+4 more)4.1.8
org.springframework.cloud:spring-cloud-gateway-server-mvc Maven · Affected: 4.1.7, 4.1.8, 4.1.9, 4.2.0 (+2 more)4.2.3
org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 2.2.10.RELEASE, 2.2.6.RELEASE, 2.2.7.RELEASE, 2.2.8.RELEASE (+20 more)3.1.10
org.springframework.cloud:spring-cloud-gateway-server Maven · Affected: 4.0.0, 4.0.1, 4.0.2, 4.0.3 (+6 more)Range-based data available

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N

Frequently Asked Questions

What is CVE-2025-41235?
Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
How do I check if my project is affected by CVE-2025-41235?
CVE-2025-41235 affects org.springframework.cloud:spring-cloud-gateway-server and org.springframework.cloud:spring-cloud-gateway-server-mvc. It has a 0.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-41235 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
8.6

Significant impact if exploited, or exploitable with modest effort.

EPSS Score (30-day exploit probability)
0.59%
EPSS percentile: 42.4

This is a below-median EPSS score — only 42.4% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-6j2q-c73v-97c5

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml