Skip to content
OpenAdvisories
High · 7.5 Public exploit CVE-2026-118650 EUVD-2026-112404GHSA-375p-5qhx-8wq4GO-2026-6873

Echo: middleware.Static: `%2F`-encoded path bypasses route/group middleware guarding a statically-served path

Published Oct 28, 2026 · Updated Nov 2, 2026 · Assigned by GitHub_M

Description

Echo is a Go web framework. Prior to 4.16.0 and 5.4.0, a globally mounted middleware.Static instance can interpret an encoded request path differently from Echo's router because the router matches the still-encoded path while the static handler uses the decoded URL.Path. The advisory demonstrates an encoded slash resolving to a file under the static root through the global static middleware, but the source is internally inconsistent about whether a route or group guard protects the corresponding literal path in that global-mount configuration. This issue is fixed in 4.16.0 and 5.4.0.

Affected products

VendorProductAffectedFixed
labstack echo >= 5.0.0, < 5.4.0, < 4.16.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 golang-github-labstack-echo No fix yet —
Ubuntu 26.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 24.04 LTS golang-github-labstack-echo No fix yet —
Ubuntu 22.04 LTS golang-github-labstack-echo +2 No fix yet —
Ubuntu 20.04 LTS golang-github-labstack-echo.v2 +1 No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/labstack/echo/v4 < 4.16.0 4.16.0 GHSA-375p-5qhx-8wq4
Go github.com/labstack/echo/v5 < 5.4.0 5.4.0 GHSA-375p-5qhx-8wq4
Go github.com/labstack/echo/v5 >= 5.0.0, < 5.4.0 5.4.0 GO-2026-6873

References