Vulnerability · Published Oct 28, 2026 · Assigned by GitHub_M

CVE-2026-118656Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI

Medium 6.1

In plain English

A medium-severity open redirect in echo from labstack. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.2%top 90.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118656
Debian:13golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118656
Debian:14golang-github-labstack-echono fix listedDEBIAN-CVE-2026-118656
Gogithub.com/labstack/echo/v44.16.0GO-2026-6883
Gogithub.com/labstack/echo/v44.16.0GHSA-v753-g4cw-jm48
Gogithub.com/labstack/echo/v55.4.0GHSA-v753-g4cw-jm48
Gogithub.com/labstack/echo/v55.4.0GO-2026-6883
Ubuntu:22.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118656
Ubuntu:24.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118656
Ubuntu:26.04:LTSgolang-github-labstack-echono fix listedUBUNTU-CVE-2026-118656
Ubuntu:26.10golang-github-labstack-echono fix listedUBUNTU-CVE-2026-118656
Ubuntu:22.04:LTSgolang-github-labstack-echo.v2no fix listedUBUNTU-CVE-2026-118656
Ubuntu:22.04:LTSgolang-github-labstack-echo.v3no fix listedUBUNTU-CVE-2026-118656

Affected products (as reported)

VendorProductVersions
labstack echo >= 5.0.0, < 5.4.0< 4.16.0

Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

References