CVEslabstackCVE-2026-118656Published Oct 28, 20:12 · Updated Oct 29, 17:23 UTC
6.1
MediumCVSS 3.1 · from GitHub_M
CVE-2026-118656

Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI

echo · Open redirect · CWE-601
Affectedecho
FixNo fix listed yet.
PublishedOct 28, 20:12 · GitHub_M
ScoredOct 28 · 6.1 · GitHub_M
Exploit code publicNone known · checked 21:18 UTC
ExploitedNone known · CISA KEV checked 22:09 UTC

What we know

No known exploitation. CISA KEV, checked 22:09 UTC.
No public exploit code known. Exploit-DB, Metasploit, Nuclei, checked 21:18 UTC.
An attacker only needs network access to the target. No login needed. CVSS: network, no privileges.
Someone has to open, click or run something first. CVSS: user interaction required.

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.

From GitHub_M

Affected and fixed versions

ProductAffectedFixed inecho>= 5.0.0, < 5.4.0–echo< 4.16.0–

Exploit code

Exploit-DBnone knownMetasploitnone knownNucleinone known

References

github.com/labstack/echo/security/advisories/GHSA-v753-g4cw-jm48 · github.comrefsource_CONFIRMgithub.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1 · github.comrefsource_MISCgithub.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5af · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v4.16.0 · github.comrefsource_MISCgithub.com/labstack/echo/releases/tag/v5.4.0 · github.comrefsource_MISC

Other CVEs in echo

All 17 →
4.7Echo: Arbitrary Scheme Injection in WWWRedirect/NonWWWRedirect Middlewares via X-Forwarded-Proto · CVE-2026-118658Oct 285.9Echo: HTTPS Redirect and HSTS Bypass via Unconditional Trust of Forwarded Scheme Headers · CVE-2026-118657Oct 285.9Echo: Static Middleware Double-Unescape Path Traversal · CVE-2026-118655Oct 28