Skip to main content
← All vulnerabilities
CVE-2026-118650EUVD-2026-112404GHSA-375P-5QHX-8WQ4

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

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

Summary

Echo, a Go web framework, is affected when its static file middleware is mounted globally. Under that configuration, an encoded path can potentially reach files in the static directory while bypassing access controls that were meant to protect the same path.

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

Timeline

  1. CVE published
  2. First seen by cve.now

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