Skip to main content
← All vulnerabilities
CVE-2026-118651GHSA-99JH-6H7P-PP36EUVD-2026-112406

Echo: Reverse Proxy Forwards Attacker-Supplied X-Real-IP to Upstream by Default

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

Echo, a Go web framework, is affected when its Proxy middleware is used without an IP extractor configured. A remote client can make upstream services receive a spoofed client IP address, which could undermine IP-based access controls, rate limiting, audit logs, or geographic restrictions.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original 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.

Timeline

  1. CVE published
  2. First seen by cve.now
  3. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  4. Record last updated

Affected versions

  • labstack echo

    From 4.0.0 · fixed in 5.4.0

  • github.com/labstack/echo/v5Go

    fixed in 5.4.0

  • github.com/labstack/echo/v4Go

    From 4.0.0 · through 4.16.2

References 3

GitHub · labstack/echo