CVE-2026-118656: Echo: Open Redirect via Control-Character Prefix Defeating sanitizeURI
Vulnerability summary
CVE-2026-118656 is a medium (CVSS 6.1) URL Redirection to Untrusted Site vulnerability in labstack echo. EPSS estimates a 0.20% chance of exploitation in the next 30 days, higher than 9.5% of scored vulnerabilities.
Not severe (CVSS 6.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 28-10-2026PublishedVulnerability first disclosed.
- 29-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · GoEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.20%
Chance of exploitation in the next 30 days
Percentile
10%
Versus all other CVEs
30-day change
Change unavailable
Change unavailable
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu3 products
- golang-github-labstack-echoAll versions (No fix recorded)
- golang-github-labstack-echo.v2All versions (No fix recorded)
- golang-github-labstack-echo.v3All versions (No fix recorded)
Github.com/labstack/echo2 products
- v4< 4.16.0
- v5< 5.4.0
Debian1 product
- golang-github-labstack-echoAll versions (No fix recorded)
Labstack1 product
- echo≥ 5.0.0, < 5.4.0 | < 4.16.0
4 vendors · 7 products
References
9 links- github.com/labstack/echo/security/advisories/GHSA-v753-g4cw-jm48X Refsource CONFIRMWEBREPORTAdvisory
- github.com/labstack/echo/commit/b838391e2eade87ae7e5a09d7bb5087bec271ec1X Refsource MISCWEBREPORTFIX
- github.com/labstack/echo/commit/fc410094b2f3415cf2bf5204082137b205bfd5afX Refsource MISCWEBREPORTFIX
- github.com/labstack/echoPACKAGE