# CVE-2026-118651: Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-10-28T19:30:01.320Z
- Modified: 2026-11-24T17:15:06.667Z
- Also known as: GHSA-99jh-6h7p-pp36, GO-2026-6875
- Weaknesses: CWE-346
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Echo is a Go web framework. From 4.0.0 until 5.4.0, the Proxy middleware can preserve an attacker-supplied X-Real-IP header and forward it to an upstream service when Echo.IPExtractor is not configured. A remote client can therefore make upstream services receive a spoofed client address, undermining IP-based access controls, rate limiting, audit logging, or geographic restrictions that trust Echo's forwarded identity. This issue is fixed in Echo 5.4.0.

(As written by CVE List.)

## Affected

- labstack echo: >= 4.0.0, < 5.4.0
- github.com/labstack/echo/v5 (Go): before 5.4.0
- github.com/labstack/echo/v4 (Go): from 4.0.0 up to 4.16.2; from 4.0.0 before 4.16.3

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/labstack/echo/security/advisories/GHSA-99jh-6h7p-pp36> (advisory, web)
- <https://github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af> (fix, web)
- <https://github.com/labstack/echo/releases/tag/v5.4.0> (web)
- <https://github.com/labstack/echo> (package)
- <https://github.com/labstack/echo/commit/ebbb855f5827b76fb206e267dd91d020000baf66> (fix)
- <https://github.com/labstack/echo/releases/tag/v4.16.3> (web)

## Sources

- CVE List: [CVE-2026-118651](https://www.cve.org/CVERecord?id=CVE-2026-118651), CVE Terms of Use, modified 2026-10-29
- GitHub Advisory Database: [GHSA-99jh-6h7p-pp36](https://github.com/advisories/GHSA-99jh-6h7p-pp36), CC-BY-4.0, modified 2026-11-05
- Go Vulnerability Database: [GO-2026-6875](https://pkg.go.dev/vuln/GO-2026-6875), CC-BY-4.0, modified 2026-11-24
- NVD: [CVE-2026-118651](https://nvd.nist.gov/vuln/detail/CVE-2026-118651), Public domain, modified 2026-10-29

---

Page: https://cve.day/CVE-2026-118651 · Whole record: https://cve.day/CVE-2026-118651.json · Rebuilt by cve.day 2026-11-25T22:59:47.680Z
