# Spring Cloud Gateway Server Forwards Headers from Untrusted Proxies

Advisory record · `GHSA-6j2q-c73v-97c5`

- **Identifiers:** `GHSA-6j2q-c73v-97c5` · `CVE-2025-41235`
- **State:** Confirmed
- **Severity:** CVSS 8.6 High
- **Critical:** No
- **Weakness (CWE):** [CWE-444](https://cwe.mitre.org/data/definitions/444.html)
- **Tags:** [HTTP request smuggling](https://agentprime.io/advisories/tag/request-smuggling.md)
- **Published:** 30 May 2025
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 30 May 2025, 06:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.springframework.cloud:spring-cloud-gateway-server` (Maven): affected `>=4.2.0, <4.2.3 || >=4.1.0, <4.1.8 || >=4.0.0, <=4.0.9 || <3.1.10`; fixed in `4.2.3`, `4.1.8`, `3.1.10`
- `org.springframework.cloud:spring-cloud-gateway-server-mvc` (Maven): affected `>=4.1.7, <4.2.3`; fixed in `4.2.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Versions of spring-cloud-gateway-server from 4.2.0 to before 4.2.3, from 4.1.0 to before 4.1.8, from 4.0.0 through 4.0.9, and before 3.1.10 forward X-Forwarded-For and Forwarded headers from untrusted proxies. spring-cloud-gateway-server-mvc versions 4.1.7 through 4.2.2 are also affected. Upgrade gateway-server to 4.2.3, 4.1.8 or 3.1.10, and gateway-server-mvc to 4.2.3. The source gives few details on what an attacker needs or what they can do.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.6 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`, from CNA (vmware)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0036, the 29th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:17 UTC: First seen by agentprime
- 31 Oct 2026, 14:17 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-6j2q-c73v-97c5)

## Sources

- [GitHub Advisory Database: GHSA-6j2q-c73v-97c5](https://github.com/advisories/GHSA-6j2q-c73v-97c5)
- [OSV: GHSA-6j2q-c73v-97c5](https://osv.dev/vulnerability/GHSA-6j2q-c73v-97c5)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-41235>
- <https://github.com/spring-cloud/spring-cloud-gateway>
- <https://spring.io/security/cve-2025-41235>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-6j2q-c73v-97c5>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6j2q-c73v-97c5/>. Everything for agents: <https://agentprime.io/llms.txt>.
