Skip to main content
← All vulnerabilities
CVE-2026-118656EUVD-2026-112463GHSA-V753-G4CW-JM48

Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI

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

Summary

Echo, a Go web framework, is affected by an open redirect flaw in its trailing-slash middleware. Attackers could craft URLs that send users' browsers to an external, attacker-controlled website, which could be used for phishing or similar abuse.

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

Read the original description

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, sanitizeURI checks only the first two bytes of a redirect target before deciding whether it begins with an absolute-path separator pair. When AddTrailingSlash or RemoveTrailingSlash is configured with a redirect status, a slash, TAB, separator path form can evade the guard, be emitted in the Location header, and be normalized by a browser into an attacker-controlled host. This issue is fixed in 4.16.0 and 5.4.0.

Timeline

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

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

  4. Record last updated

Affected versions

  • labstack echo

    From 5.0.0 · fixed in 5.4.0; fixed in 4.16.0

  • github.com/labstack/echo/v5Go

    fixed in 5.4.0

  • github.com/labstack/echo/v4Go

    fixed in 4.16.0

References 5

GitHub · labstack/echo